I have a ListView
with list items that have a Button
on them. You can no longer select the list item, only the Button
on the list item. How do you change the focus back to the list item?
Asked
Active
Viewed 1,948 times
2

user
- 86,916
- 18
- 197
- 190

user1164429
- 241
- 5
- 16
-
Have you find any solution for this? – NovusMobile Oct 18 '12 at 10:22
1 Answers
3
For the Button
in your list row layout add the attribute:
android:focusable="false"

user
- 86,916
- 18
- 197
- 190
-
Hi Slukian, thank you. I should still be able to click on the buttons right? – user1164429 Mar 06 '12 at 19:59
-
@user1164429 Yes. If you have elements like buttons , edittexts that take focus in the list row they will steal the focus from the list row. – user Mar 06 '12 at 20:48