Back to project page androidui.
The source code is released under:
MIT License
If you think the Android project androidui listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package course.examples.colorpalettewithswipe; //from w ww.j av a 2 s. co m import android.app.Activity; import android.os.Bundle; public class DisplaySingleColorActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.single_color_layout); /** * Set the background to the selected color */ findViewById(R.id.color_block).setBackgroundColor( getIntent().getIntExtra(PaletteAdapter.COLOR_EXTRA, PaletteAdapter.NO_COLOR)); } }