Im creating a simple bucketlist app. I want to sort when a user clicks on the checkbox itself but if they click on the text next to the checkbox, I want to open up an edit activity. How can I have these two onclick events for one checkbox? I am using a recyclerview if that changes anything.
<LinearLayout
android:layout_height="fill_parent"
android:layout_width="wrap_content"
android:id="@+id/linearLayout1"
android:orientation="vertical"
android:layout_weight="1"
>
<CheckBox
android:text="Place_holder Name"
android:id="@+id/bucket_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1">
</CheckBox> </LinearLayout>