CheckBoxes XML Code

Place the following code in: res/layout/activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:background="#000000"
  android:padding="5sp"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">
 
  <TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="YourName's Restaurant:"
    android:textColor="#FFFFFF"
    android:textSize="20sp"
    android:layout_marginLeft="10sp"
    android:padding="3sp" />

  <CheckBox
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textColor="#FFFFFF"
    android:textSize="18sp"
    android:layout_marginLeft="10sp"
    android:id="@+id/chkHamburger"
    android:text="Hamburger">
  </CheckBox>
	 
  <CheckBox
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textColor="#FFFFFF"
    android:textSize="18sp"
    android:layout_marginLeft="10sp"
    android:id="@+id/chkFrenchFries"
    android:text="French Fries">
  </CheckBox>
  

	    
  <View
    android:layout_height="2dip"
    android:layout_width="wrap_content"
    android:layout_marginTop="20sp"
    android:layout_marginBottom="20sp"
    android:background="#FF909090" />
    
  <ImageButton
    android:layout_width="150dp"
    android:layout_height="35dp"
    android:contentDescription="Calculate Image"
    android:id="@+id/calculateImage"
    android:src="@xml/calculate">
  </ImageButton>
      
 
  <LinearLayout 
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:layout_marginTop="10dp">
 
    <TextView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Total:"
      android:textColor="#FFFFFF"
      android:textSize="20sp"
      android:padding="3sp" />
      
    <TextView
      android:id="@+id/total"
      android:layout_width="100sp"
      android:layout_height="wrap_content"
      android:background="@android:drawable/editbox_background"
      android:text="" 
      android:textColor="#000000"
      android:padding="7sp"
      android:textSize="20sp"
      android:layout_marginLeft="10sp"
      android:paddingLeft="10sp"/>  
 
  </LinearLayout>
    
</LinearLayout>




Place the following code in: res/xml/calculate.xml

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
  <item android:state_pressed="true"
        android:drawable="@drawable/calculate_red" />
  <item android:drawable="@drawable/calculate_blue" />
</selector>