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 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/aspect_ratio_selector" 20 android:orientation="vertical" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content"> 23 <LinearLayout 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:orientation="horizontal" 27 android:gravity="center"> 28 <ImageView 29 android:id="@+id/aspect_ratio_4x3_button" 30 android:contentDescription="@string/full_sensor_4x3_aspect_ratio" 31 android:layout_width="wrap_content" 32 android:layout_height="wrap_content" 33 android:src="@drawable/aspect_ratio_4x3" 34 android:layout_marginRight="28dp"/> 35 <ImageView 36 android:id="@+id/aspect_ratio_16x9_button" 37 android:contentDescription="@string/cropped_sensor_16x9_aspect_ratio" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:src="@drawable/aspect_ratio_16x9" /> 41 </LinearLayout> 42 <LinearLayout 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:layout_marginTop="28dp" 46 android:layout_marginLeft="28dp" 47 android:layout_marginRight="28dp" 48 android:orientation="horizontal"> 49 50 <!-- NOTE: These texts only make sense on a 4:3 sensor device. --> 51 <TextView 52 android:id="@+id/text_4x3" 53 android:layout_width="0dp" 54 android:layout_height="match_parent" 55 android:text="@string/full_sensor_4x3_aspect_ratio" 56 android:textSize="16sp" 57 android:textColor="@color/dialog_text_color" 58 android:gravity="center" 59 android:layout_weight="1"/> 60 <TextView 61 android:id="@+id/text_16x9" 62 android:layout_width="0dp" 63 android:layout_height="match_parent" 64 android:text="@string/cropped_sensor_16x9_aspect_ratio" 65 android:textSize="16sp" 66 android:textColor="@color/dialog_text_color" 67 android:gravity="center" 68 android:layout_weight="1"/> 69 </LinearLayout> 70</LinearLayout> 71