Code example for ColorDrawable

Methods: setBackgroundDrawable

0
	} 
 
	private void setupActionBar() { 
 
		getActionBar().setDisplayHomeAsUpEnabled(true);
		ColorDrawable actionBarColor = new ColorDrawable(Color.rgb(75,0,130));
		getActionBar().setBackgroundDrawable(actionBarColor);
	} 
 
	/* 
	 * Checks if the fields are complete then sets visability to  
	 */ 
	private void checkIfCompleteAndSave(){ 
		 
		//Get the names if they are any 
		player1Name = player1ET.getText().toString();
		player2Name = player2ET.getText().toString();
		 
		if(player1Name.isEmpty()==false){
			//field is filled out mark as complete 
			isFieldComplete[0]=true;