mode_picker.xml revision 0f9caa3ddbf47b46097fddd6deeab626884bb805
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:background="@drawable/bg_mode_picker">
28        <View android:layout_width="match_parent"
29                android:layout_height="1dp"
30                android:background="@android:color/white"/>
31        <RelativeLayout
32                android:orientation="horizontal"
33                android:layout_width="match_parent"
34                android:layout_height="match_parent">
35            <com.android.camera.ui.RotateImageView android:id="@+id/mode_0"
36                    android:layout_width="32dp"
37                    android:layout_height="wrap_content"
38                    android:layout_centerVertical="true"
39                    android:layout_alignParentLeft="true"
40                    android:layout_marginLeft="8dp"
41                    android:scaleType="fitCenter"
42                    android:src="@drawable/ic_switch_video_holo_light" />
43            <com.android.camera.ui.RotateImageView android:id="@+id/mode_1"
44                    android:layout_width="wrap_content"
45                    android:layout_height="match_parent"
46                    android:layout_centerInParent="true"
47                    android:scaleType="fitCenter"
48                    android:src="@drawable/ic_switch_camera_holo_light" />
49            <com.android.camera.ui.RotateImageView android:id="@+id/mode_2"
50                    android:layout_width="32dp"
51                    android:layout_height="wrap_content"
52                    android:layout_centerVertical="true"
53                    android:layout_alignParentRight="true"
54                    android:layout_marginRight="8dp"
55                    android:scaleType="fitCenter"
56                    android:src="@drawable/ic_switch_pan_holo_light" />
57        </RelativeLayout>
58    </RelativeLayout>
59    <RelativeLayout android:id="@+id/mode_selection"
60            android:orientation="vertical"
61            android:layout_width="match_parent"
62            android:layout_height="198dp"
63            android:background="@drawable/bg_switcher"
64            android:visibility="gone">
65        <View android:layout_width="match_parent"
66                android:layout_height="1dp"
67                android:layout_alignParentTop="true"
68                android:background="@color/mode_selection_border"/>
69        <LinearLayout
70                android:orientation="vertical"
71                android:layout_width="match_parent"
72                android:layout_height="wrap_content"
73                android:layout_centerVertical="true">
74            <com.android.camera.ui.RotateImageView android:id="@+id/mode_camera"
75                    android:layout_width="match_parent"
76                    android:layout_height="wrap_content"
77                    android:layout_marginBottom="10dp"
78                    android:scaleType="center"
79                    android:src="@drawable/ic_switch_camera_holo_light" />
80            <com.android.camera.ui.RotateImageView android:id="@+id/mode_video"
81                    android:layout_width="match_parent"
82                    android:layout_height="wrap_content"
83                    android:layout_marginBottom="10dp"
84                    android:scaleType="center"
85                    android:src="@drawable/ic_switch_video_holo_light" />
86            <com.android.camera.ui.RotateImageView android:id="@+id/mode_panorama"
87                    android:layout_width="match_parent"
88                    android:layout_height="wrap_content"
89                    android:scaleType="center"
90                    android:src="@drawable/ic_switch_pan_holo_light" />
91        </LinearLayout>
92    </RelativeLayout>
93</com.android.camera.ModePicker>
94