How can i start a new activity when user clicks on the text of the checkbox.for ex.when user clicks on terms and condition a new activity is created without changing the state of checkbox
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe the entire checkbox takes a single “click” event. So, in order to have the checkbox toggle on click, and the label launch a new Activity, I would recommend that you use a horizontal LinearLayout to layout a CheckBox with no text, and a TextView with the required label. Now, you can independently handle the click on CheckBox and it’s label.