mode_picker.xml revision e46d09dc17ac1cad5062fdc4b29916dc63da06c3
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="wrap_content"
19            android:layout_height="wrap_content"
20            android:layout_marginBottom="12dp"
21            android:layout_centerHorizontal="true"
22            android:layout_alignParentBottom="true">
23        <com.android.camera.ui.RotateImageView android:id="@+id/current_mode"
24                android:layout_alignParentBottom="true"
25                android:layout_height="62dp"
26                android:layout_width="62dp"
27                android:scaleType="center"
28                android:background="@drawable/btn_mode_background"
29                android:src="@drawable/btn_ic_camera" />
30        <LinearLayout android:id="@+id/mode_selection"
31                android:orientation="vertical"
32                android:layout_height="wrap_content"
33                android:layout_width="wrap_content"
34                android:background="@android:color/black"
35                android:layout_alignParentBottom="true"
36                android:gravity="center"
37                android:visibility="gone">
38            <com.android.camera.ui.RotateImageView android:id="@+id/mode_panorama"
39                    android:layout_height="62dp"
40                    android:layout_width="62dp"
41                    android:scaleType="center"
42                    android:src="@drawable/btn_ic_panorama" />
43            <com.android.camera.ui.RotateImageView android:id="@+id/mode_video"
44                    android:layout_height="62dp"
45                    android:layout_width="62dp"
46                    android:scaleType="center"
47                    android:src="@drawable/btn_ic_video" />
48            <com.android.camera.ui.RotateImageView android:id="@+id/mode_camera"
49                    android:layout_height="62dp"
50                    android:layout_width="62dp"
51                    android:scaleType="center"
52                    android:src="@drawable/btn_ic_camera" />
53        </LinearLayout>
54</com.android.camera.ModePicker>
55