I have a ListView that each item has a layout that contains a HorizontalScrollView. the problem is that I can't get the whole list item to be focused on when the user clicks or touches a list item.
how can I solve this ?
Thanks
Edit: the HorizontalScrollView looks like this:
<HorizontalScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fillViewport="true"
android:scrollbars="none"
android:focusable="false"
android:fadingEdge="none"
android:layout_weight="1"
android:id="@+id/scrollView"
></HorizontalScrollView>
OK Guys, I got it. in the LinearLayout wrapping my HorizontalScrollView I added the following attribute:
android:descendantFocusability="blocksDescendants"
so the HorizontalScrollView did not receive focus.
thanks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With