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 examples.course.basiccolorpalette; // w ww . j a v a 2s.com import android.app.Activity; import android.os.Bundle; import java.util.Set; 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, 0)); } }