1 <?xml version="1.0" encoding="utf-8"?> 2 3 <LinearLayout 4 xmlns:android="http://schemas.android.com/apk/res/android" 5 android:orientation="vertical" 6 android:layout_width="wrap_content" 7 android:layout_height="wrap_content" 8 android:gravity="center_horizontal" 9 > 10 11 <include layout="@layout/snippet"/> 12 13 <View 14 android:layout_width="fill_parent" 15 android:layout_height="10dip" 16 /> 17 18 <View 19 android:id="@+id/time" 20 android:layout_width="wrap_content" 21 android:layout_height="wrap_content" 22 android:textSize="14dip" 23 android:textColor="#fff" 24 android:enabled="false" 25 android:contentDescription="@string/howdy" 26 /> 27 28 <TextView 29 android:id="@+id/title" 30 android:layout_width="138dip" 31 android:layout_height="wrap_content" 32 android:maxHeight="46dip" 33 android:singleLine="false" 34 android:gravity="center_horizontal" 35 android:text="Main Layout" 36 android:textSize="18dip" 37 android:textStyle="bold" 38 android:textColor="#fff" 39 android:drawableTop="@drawable/an_image" 40 android:drawableRight="@drawable/an_other_image" 41 android:drawableBottom="@drawable/third_image" 42 android:drawableLeft="@drawable/fourth_image" 43 /> 44 45 <TextView 46 android:id="@+id/subtitle" 47 android:layout_width="138dip" 48 android:gravity="center_horizontal" 49 android:layout_height="wrap_content" 50 android:text="@string/hello" 51 android:maxHeight="36dip" 52 android:textSize="14dip" 53 android:textColor="#fff" 54 /> 55 56 <CheckBox android:id="@+id/true_checkbox" android:checked="true"/> 57 <CheckBox android:id="@+id/false_checkbox" android:checked="false"/> 58 <CheckBox android:id="@+id/default_checkbox"/> 59 60 <ImageView 61 android:id="@+id/image" 62 android:src="@drawable/an_image" 63 android:background="@drawable/image_background" 64 /> 65 66 <Button 67 android:id="@+id/button" 68 android:onClick="onButtonClick" 69 /> 70 71 </LinearLayout> 72