Hi All, I am trying to implement gestures on a listview in android 4.0.3. This list view is a part of ListFragment. I have defined gestureoverlayview in the fragment's xml as follows,
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/list_layout" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?attr/background" > <android.gesture.GestureOverlayView android:id="@+id/gestures" android:gestureStrokeType="multiple" android:eventsInterceptionEnabled="true" android:layout_width="match_parent" android:layout_height="match_parent" android:uncertainGestureColor="#00000000" android:orientation="vertical" android:layout_weight="1" > <!-- Shown only when an Account filter is set. paddingTop should be here to show "shade" effect correctly. --> <include android:id="@+id/account_filter_header_container" layout="@layout/account_filter_header" /> <view class="com.xyz.CustomListView" android:id="@android:id/list" android:layout_width="match_parent" android:layout_height="0dip" android:layout_marginLeft="?attr/list_padding_left" android:layout_marginRight="?attr/list_padding_right" android:fastScrollEnabled="true" android:fadingEdge="none" /> </android.gesture.GestureOverlayView> </LinearLayout> I have implemented ongesturePerformedListener to this List fragment. But while running this application, ListView is not visible on the screen (seems like it is hidden by GestureOverlayView) but I can perform gestures on the screen. Note : when I have replaced GestureOverlayView with simple LinearLayout..list view turns visible on the screen. I have tried playing with xml layout but could not find a way. Does it because it is a part of a fragment layout? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en