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.colorpalettewithnavdrawer; /*ww w.j a v a 2 s. c om*/ 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.display_single_color_layout); /* * Set the background to the selected color */ findViewById(R.id.color_block).setBackgroundColor( getIntent().getIntExtra(PaletteNameAdapter.COLOR_EXTRA, PaletteNameAdapter.NO_COLOR)); } }