1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2014 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 style="@style/start_up_dialog_content" 19 android:orientation="vertical" 20 android:gravity="center_horizontal" 21 android:paddingLeft="16dp" 22 android:paddingRight="16dp"> 23 <TextView 24 android:layout_width="match_parent" 25 android:layout_height="0dp" 26 android:layout_weight="1" 27 android:layout_margin="28dp" 28 android:gravity="center" 29 android:text="@string/photo_size_selection_title" 30 style="@style/fullscreen_dialog_title" /> 31 <include 32 layout="@layout/aspect_ratio_selector" 33 android:layout_width="match_parent" 34 android:layout_height="0dp" 35 android:layout_weight="2" /> 36 <LinearLayout 37 android:layout_width="match_parent" 38 android:layout_height="wrap_content" 39 android:gravity="center" 40 android:orientation="horizontal"> 41 <!-- NOTE: These texts only make sense on a 4:3 sensor device. --> 42 <TextView 43 android:id="@+id/text_4x3" 44 android:layout_width="0dp" 45 android:layout_height="match_parent" 46 android:text="@string/full_sensor_4x3_aspect_ratio" 47 android:textSize="16sp" 48 android:textColor="@color/dialog_text_color" 49 android:gravity="center" 50 android:layout_weight="1"/> 51 <TextView 52 android:id="@+id/text_16x9" 53 android:layout_width="0dp" 54 android:layout_height="match_parent" 55 android:text="@string/cropped_sensor_16x9_aspect_ratio" 56 android:textSize="16sp" 57 android:textColor="@color/dialog_text_color" 58 android:gravity="center" 59 android:layout_weight="1"/> 60 </LinearLayout> 61 <TextView 62 android:layout_width="match_parent" 63 android:layout_height="0dp" 64 android:layout_weight="1" 65 android:textSize="20sp" 66 android:layout_margin="28dp" 67 android:textColor="@color/dialog_text_color" 68 android:gravity="center" 69 android:text="@string/photo_aspect_ratio_selection_content" /> 70 <FrameLayout 71 android:layout_width="match_parent" 72 android:layout_height="0dp" 73 android:layout_weight="1" > 74 <Button 75 android:id="@+id/confirm_button" 76 style="@style/BlueButton" 77 android:layout_gravity="center" 78 android:text="@string/confirm_button_text" /> 79 </FrameLayout> 80</LinearLayout>