How to do something when a checkbox change state?
问题 This is my code: <CheckBox android:id="@+id/sprint_checkbox" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/sprint_game" /> <CheckBox android:id="@+id/marathon_checkbox" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/marathon" /> <CheckBox android:id="@+id/never_ending_checkbox" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/never_ending" /> What i want