Is it possible to use a OnItemClickListener on a ListView when the Items layout has a clickable/editable widget (RadioButton,EditText, or 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.
You might want to take a look at this issue. Having a focusable item in a row of a
ListViewcauses theOnItemClickListenerNOT to be invoked. However, that does not mean you cannot have focusable/clickable items in a row, there are some workarounds like this one.Also, you can take a look at the Call Logs screen. It has a
ListViewwith clickable item(the call icon on the right).See Source code here