mode_picker.xml revision 26d88fce15a24362644123af5f0cce79ea572e7b
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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    <RelativeLayout android:id="@+id/current_mode"
23            android:orientation="vertical"
24            android:layout_alignBottom="@+id/mode_selection"
25            android:layout_width="match_parent"
26            android:layout_height="55dp"
27            android:contentDescription="@string/accessibility_mode_picker"
28            android:background="@drawable/bg_mode_picker">
29        <View android:layout_width="match_parent"
30                android:layout_height="1dp"
31                android:background="@android:color/white"/>
32        <RelativeLayout
33                android:orientation="horizontal"
34                android:contentDescription="@string/empty"
35                android:layout_width="match_parent"
36                android:layout_height="match_parent">
37            <com.android.camera.ui.RotateImageView android:id="@+id/mode_0"
38                    android:layout_width="32dp"
39                    android:layout_height="wrap_content"
40                    android:layout_centerVertical="true"
41                    android:layout_alignParentLeft="true"
42                    android:layout_marginLeft="8dp"
43                    android:scaleType="fitCenter"
44                    android:contentDescription="@string/empty"
45                    android:src="@drawable/ic_switch_video_holo_light" />
46            <com.android.camera.ui.RotateImageView android:id="@+id/mode_1"
47                    android:layout_width="wrap_content"
48                    android:layout_height="match_parent"
49                    android:layout_centerInParent="true"
50                    android:scaleType="fitCenter"
51                    android:contentDescription="@string/empty"
52                    android:src="@drawable/ic_switch_camera_holo_light" />
53            <com.android.camera.ui.RotateImageView android:id="@+id/mode_2"
54                    android:layout_width="32dp"
55                    android:layout_height="wrap_content"
56                    android:layout_centerVertical="true"
57                    android:layout_alignParentRight="true"
58                    android:layout_marginRight="8dp"
59                    android:scaleType="fitCenter"
60                    android:contentDescription="@string/empty"
61                    android:src="@drawable/ic_switch_pan_holo_light" />
62        </RelativeLayout>
63    </RelativeLayout>
64    <RelativeLayout android:id="@+id/mode_selection"
65            android:orientation="vertical"
66            android:layout_width="match_parent"
67            android:layout_height="198dp"
68            android:background="@drawable/bg_switcher"
69            android:visibility="gone">
70        <View android:layout_width="match_parent"
71                android:layout_height="1dp"
72                android:layout_alignParentTop="true"
73                android:background="@color/mode_selection_border"/>
74        <LinearLayout
75                android:orientation="vertical"
76                android:layout_width="match_parent"
77                android:layout_height="wrap_content"
78                android:layout_centerVertical="true">
79            <com.android.camera.ui.RotateImageView android:id="@+id/mode_camera"
80                    android:contentDescription="@string/switch_to_camera_label"
81                    android:layout_width="match_parent"
82                    android:layout_height="wrap_content"
83                    android:layout_marginBottom="10dp"
84                    android:scaleType="center"
85                    android:background="@drawable/bg_pressed"
86                    android:src="@drawable/ic_switch_camera_holo_light" />
87            <com.android.camera.ui.RotateImageView android:id="@+id/mode_video"
88                    android:contentDescription="@string/switch_to_video_label"
89                    android:layout_width="match_parent"
90                    android:layout_height="wrap_content"
91                    android:layout_marginBottom="10dp"
92                    android:scaleType="center"
93                    android:background="@drawable/bg_pressed"
94                    android:src="@drawable/ic_switch_video_holo_light" />
95            <com.android.camera.ui.RotateImageView android:id="@+id/mode_panorama"
96                    android:contentDescription="@string/switch_to_panorama_label"
97                    android:layout_width="match_parent"
98                    android:layout_height="wrap_content"
99                    android:scaleType="center"
100                    android:background="@drawable/bg_pressed"
101                    android:src="@drawable/ic_switch_pan_holo_light" />
102        </LinearLayout>
103    </RelativeLayout>
104</com.android.camera.ModePicker>
105