blob: d1772401ef6a2a21c9af2c0ed338cd889f987bf1 [file] [log] [blame]
Doris Liu08a98b92013-02-26 10:54:25 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 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-->
Doris Liu62c2ed62013-04-02 17:48:56 -070016<com.android.camera.ui.CameraControls
Doris Liub9f88b92013-03-04 22:19:10 -080017 xmlns:android="http://schemas.android.com/apk/res/android"
Doris Liu08a98b92013-02-26 10:54:25 -080018 android:id="@+id/camera_controls"
Michael Kolba18f6652013-05-01 13:28:24 -070019 android:layout_width="match_parent"
20 android:layout_height="match_parent" >
Doris Liu08a98b92013-02-26 10:54:25 -080021
Doris Liu62c2ed62013-04-02 17:48:56 -070022 <View
Doris Liu08a98b92013-02-26 10:54:25 -080023 android:id="@+id/blocker"
Doris Liu7f6f7732013-05-14 14:37:46 -070024 android:clickable="true"
Doris Liu08a98b92013-02-26 10:54:25 -080025 android:layout_height="match_parent"
26 android:layout_width="@dimen/switcher_size"
Doris Liu08a98b92013-02-26 10:54:25 -080027 android:layout_gravity="right" />
28
29 <include layout="@layout/menu_indicators"
Michael Kolb81dc4d22013-04-26 11:09:29 -070030 android:layout_width="64dip"
31 android:layout_height="64dip"
Doris Liu08a98b92013-02-26 10:54:25 -080032 android:layout_marginTop="-5dip"
Michael Kolb81dc4d22013-04-26 11:09:29 -070033 android:layout_marginRight="6dip"
Doris Liu08a98b92013-02-26 10:54:25 -080034 android:layout_gravity="top|right"/>
35
36 <com.android.camera.ui.PieMenuButton
37 android:id="@+id/menu"
38 style="@style/SwitcherButton"
39 android:contentDescription="@string/accessibility_menu_button"
40 android:layout_gravity="right|top"
41 android:layout_marginRight="2dip" />
Doris Liu08a98b92013-02-26 10:54:25 -080042
Doris Liu08a98b92013-02-26 10:54:25 -080043 <com.android.camera.ui.CameraSwitcher
44 android:id="@+id/camera_switcher"
45 style="@style/SwitcherButton"
46 android:layout_gravity="right|bottom"
47 android:layout_marginRight="2dip"
48 android:contentDescription="@string/accessibility_mode_picker" />
Doris Liu08a98b92013-02-26 10:54:25 -080049
Doris Liub9f88b92013-03-04 22:19:10 -080050 <com.android.camera.ShutterButton
51 android:id="@+id/shutter_button"
52 android:layout_width="wrap_content"
53 android:layout_height="wrap_content"
54 android:layout_gravity="right|center_vertical"
55 android:layout_marginRight="@dimen/shutter_offset"
56 android:clickable="true"
57 android:contentDescription="@string/accessibility_shutter_button"
58 android:focusable="true"
59 android:scaleType="center"
60 android:src="@drawable/btn_new_shutter" />
Michael Kolb8c0570c2013-04-30 15:34:19 -070061
Sascha Haeberling37f36112013-08-06 14:31:52 -070062 <ImageView
Michael Kolb8c0570c2013-04-30 15:34:19 -070063 android:id="@+id/preview_thumb"
64 android:visibility="invisible"
65 android:layout_width="@dimen/capture_size"
66 android:layout_height="@dimen/capture_size"
Sascha Haeberling37f36112013-08-06 14:31:52 -070067 android:scaleType="centerInside"
Michael Kolb8c0570c2013-04-30 15:34:19 -070068 android:layout_gravity="top|right" />
69
Doris Liu62c2ed62013-04-02 17:48:56 -070070</com.android.camera.ui.CameraControls>