Enable ListView

0

When I enter a ImageButton in the layout of my ListView , it is no longer possible to click the ListView , that is, the click is disabled. Is there any way to enable ListView when you have a ImageButton inserted in your layout?

    
asked by anonymous 09.09.2014 / 21:35

1 answer

3

Unfortunately,

android:focusable="false"
android:focusableInTouchMode="false"

does not work for ImageButton .

I found the solution here . In the layout of your xml for these items add

android:descendantFocusability="blocksDescendants" 

in the root of the view.

Works perfectly for ListView with ImageButton .

    
09.09.2014 / 21:56