1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 XML for screen providing ability to test different clicks and gestures. 4 --> 5 6 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 7 android:layout_width="fill_parent" 8 android:layout_height="fill_parent" 9 android:fillViewport="true" 10 android:orientation="vertical" > 11 12 <LinearLayout 13 android:layout_width="match_parent" 14 android:layout_height="wrap_content" > 15 16 <TextView 17 android:id="@+id/textClick" 18 android:layout_width="wrap_content" 19 android:layout_height="wrap_content" 20 android:layout_weight="1" 21 android:gravity="center" 22 android:text="@string/text_click" 23 android:textAppearance="?android:attr/textAppearanceMedium" 24 android:visibility="gone" /> 25 26 <TextView 27 android:id="@+id/textLongClick" 28 android:layout_width="wrap_content" 29 android:layout_height="wrap_content" 30 android:layout_weight="1" 31 android:gravity="center" 32 android:text="@string/text_longClick" 33 android:textAppearance="?android:attr/textAppearanceMedium" 34 android:visibility="gone" /> 35 36 <TextView 37 android:id="@+id/textSwipe" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:layout_weight="1" 41 android:gravity="center" 42 android:text="@string/text_swipe" 43 android:textAppearance="?android:attr/textAppearanceMedium" 44 android:visibility="gone" /> 45 46 <TextView 47 android:id="@+id/textDoubleClick" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:layout_weight="1" 51 android:gravity="center" 52 android:text="@string/text_doubleClick" 53 android:textAppearance="?android:attr/textAppearanceMedium" 54 android:visibility="gone" /> 55 </LinearLayout> 56 57 <View 58 android:id="@+id/gestureArea" 59 android:layout_width="fill_parent" 60 android:layout_height="0dp" 61 android:layout_weight="1" 62 android:gravity="top" 63 android:clickable="true" 64 android:onClick="areaClicked" 65 /> 66 67 </LinearLayout> 68