android - GestureOverlayView not working perfectly on layout -
i working on project include gestures. it's work want put padding or margin on gesture not layout change want. how put padding or margin in gestures?
my xml code:
<framelayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1.50" android:layout_margintop="5dp" android:layout_gravity="center" > <imageview android:id="@+id/imageview3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/bg_alpha" android:layout_gravity="center" android:contentdescription="@string/app_name" > </imageview> <android.gesture.gestureoverlayview android:id="@+id/draw_on_gesture" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_margin="15dp" android:background="@drawable/a_draw" android:eventsinterceptionenabled="true"> </android.gesture.gestureoverlayview> </framelayout>
can post code here please? can try out! also, think may @ this!
<?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>
also refer link i hope link may answer question!
Comments
Post a Comment