1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2012 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 <com.android.camera.ModePicker xmlns:android="http://schemas.android.com/apk/res/android" 17 android:id="@+id/mode_picker" 18 android:layout_width="match_parent" 19 android:layout_height="wrap_content" 20 android:layout_alignParentBottom="true" 21 android:visibility="gone"> 22 <!-- minWidth in camera_control.xml is used to avoid overlapping of current_mode. --> 23 <RelativeLayout android:id="@+id/current_mode" 24 android:layout_width="match_parent" 25 android:layout_height="55dp" 26 android:contentDescription="@string/accessibility_mode_picker" 27 android:background="@drawable/bg_mode_picker"> 28 <RelativeLayout 29 android:contentDescription="@string/empty" 30 android:layout_height="match_parent" 31 android:layout_width="match_parent"> 32 <com.android.camera.ui.RotateImageView android:id="@+id/mode_0" 33 android:layout_height="32dp" 34 android:layout_width="32dp" 35 android:layout_centerVertical="true" 36 android:layout_alignParentLeft="true" 37 android:layout_marginLeft="8dp" 38 android:scaleType="fitCenter" 39 android:contentDescription="@string/empty" 40 android:src="@drawable/ic_switch_video_holo_light" /> 41 <com.android.camera.ui.RotateImageView android:id="@+id/mode_1" 42 android:layout_height="wrap_content" 43 android:layout_width="wrap_content" 44 android:layout_centerInParent="true" 45 android:scaleType="fitCenter" 46 android:contentDescription="@string/empty" 47 android:src="@drawable/ic_switch_camera_holo_light" /> 48 <com.android.camera.ui.RotateImageView android:id="@+id/mode_2" 49 android:layout_height="32dp" 50 android:layout_width="32dp" 51 android:layout_centerVertical="true" 52 android:layout_alignParentRight="true" 53 android:layout_marginRight="8dp" 54 android:scaleType="fitCenter" 55 android:contentDescription="@string/empty" 56 android:src="@drawable/ic_switch_pan_holo_light" /> 57 </RelativeLayout> 58 <View android:layout_width="match_parent" 59 android:layout_height="1dp" 60 android:layout_alignParentTop="true" 61 android:background="@android:color/white"/> 62 </RelativeLayout> 63 <LinearLayout android:id="@+id/mode_selection" 64 android:orientation="vertical" 65 android:layout_width="match_parent" 66 android:layout_height="163dp" 67 android:background="@drawable/bg_switcher" 68 android:visibility="gone"> 69 <View android:layout_width="match_parent" 70 android:layout_height="1dp" 71 android:background="@color/mode_selection_border"/> 72 <com.android.camera.ui.RotateImageView android:id="@+id/mode_panorama" 73 android:contentDescription="@string/accessibility_switch_to_panorama" 74 android:layout_width="match_parent" 75 android:layout_height="54dp" 76 android:scaleType="center" 77 android:background="@drawable/bg_pressed" 78 android:src="@drawable/ic_switch_pan_holo_light" /> 79 <com.android.camera.ui.RotateImageView android:id="@+id/mode_video" 80 android:contentDescription="@string/accessibility_switch_to_video" 81 android:layout_width="match_parent" 82 android:layout_height="54dp" 83 android:scaleType="center" 84 android:background="@drawable/bg_pressed" 85 android:src="@drawable/ic_switch_video_holo_light" /> 86 <com.android.camera.ui.RotateImageView android:id="@+id/mode_camera" 87 android:contentDescription="@string/accessibility_switch_to_camera" 88 android:layout_width="match_parent" 89 android:layout_height="54dp" 90 android:scaleType="center" 91 android:background="@drawable/bg_pressed" 92 android:src="@drawable/ic_switch_camera_holo_light" /> 93 </LinearLayout> 94 </com.android.camera.ModePicker> 95