I am developing an app for android TV. I have a listview
with an ImageButton
+ Textview
s as children. As TV does not take touch events but uses D-PAD or trackball remote I have to get focus on all clickable items so that user knows where the focus is. But the problem is I can get focus on list row if I add
android:descendantFocusability="blocksDescendants"
in the custom list row layout but ImageButton
in the list row will not get focus.
And if I remove above code then ImageButton
gets focus but I can't click list row.
Also I added setItemsCanFocus
for my ListView
but no luck, nothing changed.
I read many documents but i could not find a proper answer for this problem. I want focus on both List row as well as ImageButton
. Is it possible, if any one knows please help me...