1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:id="@+id/layout_root" 4 android:layout_width="fill_parent" 5 android:layout_height="fill_parent" 6 android:orientation="vertical" 7 android:padding="10dp" > 8 9 <LinearLayout 10 android:layout_width="match_parent" 11 android:layout_height="0dp" 12 android:layout_weight="1" > 13 14 <ImageView 15 android:id="@+id/snapshot_image" 16 android:layout_width="0dp" 17 android:layout_height="match_parent" 18 android:layout_weight="2" 19 android:contentDescription="@string/still_image_description" 20 android:minWidth="320dp" 21 tools:ignore="NestedWeights" /> 22 23 <TextView 24 android:id="@+id/snapshot_text" 25 android:layout_width="0dp" 26 android:layout_height="fill_parent" 27 android:layout_weight="1" 28 android:minLines="4" 29 android:text="@string/snapshot_text_default" 30 android:textColor="#FFF" /> 31 </LinearLayout> 32 33 <LinearLayout 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:layout_gravity="center_horizontal" > 37 38 <Button 39 android:id="@+id/snapshot_ok" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:text="@string/snapshot_ok_label" /> 43 44 <Button 45 android:id="@+id/snapshot_save" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:text="@string/snapshot_save_label" /> 49 50 <Button 51 android:id="@+id/snapshot_view" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:text="@string/snapshot_view_label" /> 55 </LinearLayout> 56 57 </LinearLayout> 58