Code example for ColorDrawable

Methods: setBackgroundDrawable

0
			break; 
		case 2: 
			getActionBar().setBackgroundDrawable(new ColorDrawable(Color.rgb(58, 36, 4)));
			break; 
		case 3: 
			getActionBar().setBackgroundDrawable(new ColorDrawable(Color.rgb(127, 50, 59)));
			break; 
		case 4: 
			getActionBar().setBackgroundDrawable(new ColorDrawable(Color.rgb(172, 172, 172)));
			break; 
		case 5: 
			getActionBar().setBackgroundDrawable(new ColorDrawable(Color.rgb(67, 67, 67)));
			break; 
		} 
    } 
	 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE