views:

16

answers:

0

Hello, I'd like to know how to implement gestures recognition in a ListActivity, so without a Layout in XML. I know how to do it with an XML so I'd like to create this gestureOverlay from java code :

  <android.gesture.GestureOverlayView
android:id="@+id/gesturesMain"
android:layout_width="fill_parent" 
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:gestureStrokeType="single"
android:orientation="vertical"
android:eventsInterceptionEnabled="true"
android:gestureColor="#0000"
android:uncertainGestureColor="#0000">

This is the XML I use in my other activities but in my ListActivity I don't know how to implement gesture :(

Thanks