if user checked the checkbox1 and checkbox2 and checkbox3 then click on button1 i want the code to take him to another activity .
there is my xml file code :
<CheckBox
android:id="@+id/checkBox0"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:focusable="false"
android:text="stomache" />
<CheckBox
android:id="@+id/checkBox1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:focusable="false"
android:text="Couphing" />
<CheckBox
android:id="@+id/checkBox2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:focusable="false"
android:text="shortness of breath" />
<CheckBox
android:id="@+id/checkBox3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:focusable="false"
android:text="weezing" />
<CheckBox
android:id="@+id/checkBox4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:focusable="false"
android:text="Dermatitis or eczema" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Determine your Doctor" />
So I want if statement to do something when CheckBox1 and 2 and 3 is checked .
Aucun commentaire:
Enregistrer un commentaire