0
When I insert a ImageButton
in the layout of my ListView
, it is no longer possible to click on ListView
, ie, the click is disabled. Is there any way to enable the click ListView
when you have a ImageButton
inserted into its layout?
0
When I insert a ImageButton
in the layout of my ListView
, it is no longer possible to click on ListView
, ie, the click is disabled. Is there any way to enable the click ListView
when you have a ImageButton
inserted into its layout?
3
Unfortunately,
android:focusable="false"
android:focusableInTouchMode="false"
does not work for ImageButton
.
I found the solution here. In your xml layout for these add items
android:descendantFocusability="blocksDescendants"
in the view root.
Works perfectly for a ListView
with ImageButton
.
Browser other questions tagged android android-layout listview
You are not signed in. Login or sign up in order to post.