Code example for ColorDrawable

Methods: setBackgroundDrawable

0
	 * Set up the {@link android.app.ActionBar}. 
	 */ 
	private void setupActionBar() { 
 
		getActionBar().setDisplayHomeAsUpEnabled(true);
		ColorDrawable actionBarColor = new ColorDrawable(Color.rgb(255,160,122));
		getActionBar().setBackgroundDrawable(actionBarColor);
	} 
 
	@Override 
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present. 
		getMenuInflater().inflate(R.menu.setup_game, menu);
		return true; 
	} 
 
	@Override 
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case android.R.id.home:
			// This ID represents the Home or Up button. In the case of this