Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      3     android:layout_width="fill_parent"
      4     android:layout_height="fill_parent"
      5     android:orientation="vertical"
      6     android:padding="20dip" >
      7     <LinearLayout
      8         android:layout_width="fill_parent"
      9         android:layout_height="wrap_content"
     10         android:gravity="center_horizontal"
     11         android:orientation="horizontal" >
     12         <Button
     13             android:id="@+id/popupButton"
     14             android:layout_width="wrap_content"
     15             android:layout_height="wrap_content"
     16             android:layout_marginRight="10dp"
     17             android:text="Click here for popup menu!"
     18             android:onClick="showPopup" />
     19     </LinearLayout>
     20     <LinearLayout
     21         android:layout_width="fill_parent"
     22         android:layout_height="wrap_content"
     23         android:gravity="center_horizontal"
     24         android:orientation="horizontal" >
     25         <TextView
     26             android:id="@+id/textContextMenu"
     27             android:layout_width="wrap_content"
     28             android:layout_height="wrap_content"
     29             android:text="long-click here for context menu!"
     30             android:textAppearance="?android:attr/textAppearanceMedium" />
     31     </LinearLayout>
     32     <TextView
     33         android:id="@+id/textMenuResult"
     34         android:layout_width="fill_parent"
     35         android:layout_height="wrap_content"
     36         android:layout_marginTop="20dp"
     37         android:gravity="center"
     38         android:text="@string/text_empty"
     39         android:textAppearance="?android:attr/textAppearanceSmall" />
     40 </LinearLayout>