<?xml version="1.0" encoding="utf-8"?> <!-- XML for screen providing ability to test different clicks and gestures. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:fillViewport="true" android:orientation="vertical" > <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" > <TextView android:id="@+id/textClick" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="center" android:text="@string/text_click" android:textAppearance="?android:attr/textAppearanceMedium" android:visibility="gone" /> <TextView android:id="@+id/textLongClick" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="center" android:text="@string/text_longClick" android:textAppearance="?android:attr/textAppearanceMedium" android:visibility="gone" /> <TextView android:id="@+id/textSwipe" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="center" android:text="@string/text_swipe" android:textAppearance="?android:attr/textAppearanceMedium" android:visibility="gone" /> <TextView android:id="@+id/textDoubleClick" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="center" android:text="@string/text_doubleClick" android:textAppearance="?android:attr/textAppearanceMedium" android:visibility="gone" /> </LinearLayout> <View android:id="@+id/gestureArea" android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="1" android:gravity="top" android:clickable="true" android:onClick="areaClicked" /> </LinearLayout>