Sep 13, 2011

GestureOverlayView

android.gesture.GestureOverlayView is transparent overlay for gesture input that can be placed on top of other widgets or contain other widgets.

GestureOverlayView

Modify main.xml to add GestureOverlayView on layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
<android.gesture.GestureOverlayView
android:id="@+id/gestures"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gestureStrokeType="multiple"
android:eventsInterceptionEnabled="true"/>
</LinearLayout>


Related:
- Detection of Gesture

1 comment:

Infolinks In Text Ads