Android: HorizontalScrollView in line ListView Item, focus issue

I have a ListView that each item has a layout containing a HorizontalScrollView . the problem is that I cannot get the whole list item to focus when the user clicks or touches the list item.

how can i solve this?

thank

Edit: HorizontalScrollView is as follows:

<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>
+5
source share
2 answers

OK Guys, I get it. at LinearLayout completing my HorizontalScrollView, I added the following attribute:

android:descendantFocusability="blocksDescendants"

so that HorizontalScrollView does not get focus.

thank

+8

HorizontalScrollView ListView. . ExpandableListView. , .

0

All Articles