Archive | Android RSS feed for this section

Android ListViews not clickable

20 Nov

Apparently ListViews lose their clickability if they contain focusable child elements in their layout.

I initially set all the child elements to not be focusable.

But now do this in the getView() method instead:

((ViewGroup) convertedView).setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);