blob: d237833a599e256ded96503bda23d8a83155ad7b [file] [log] [blame]
Erin Dahlgren4efa8b52013-12-17 18:31:35 -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-->
16<merge xmlns:android="http://schemas.android.com/apk/res/android"
17 xmlns:camera="http://schemas.android.com/apk/res/com.android.camera2"
18 android:layout_width="match_parent"
19 android:layout_height="match_parent">
20
21 <FrameLayout
22 android:id="@+id/bottombar_capture"
23 android:layout_width="match_parent"
24 android:layout_height="match_parent"
25 android:visibility="visible" >
26 <com.android.camera.ShutterButton
27 android:id="@+id/shutter_button"
Spike Sprague3b92e2f2014-01-02 11:42:12 -080028 android:layout_width="match_parent"
29 android:layout_height="match_parent"
Erin Dahlgren4efa8b52013-12-17 18:31:35 -080030 android:layout_gravity="center"
Spike Sprague3b92e2f2014-01-02 11:42:12 -080031 android:scaleType="center"
Erin Dahlgren4efa8b52013-12-17 18:31:35 -080032 android:clickable="true"
33 android:contentDescription="@string/accessibility_shutter_button"
34 android:focusable="true"
35 android:src="@drawable/ic_camera_normal" />
36 </FrameLayout>
37
38 <com.android.camera.ui.TopRightWeightedLayout
Erin Dahlgren56688f72014-01-09 14:30:34 -080039 android:id="@+id/bottombar_options"
Erin Dahlgren4efa8b52013-12-17 18:31:35 -080040 android:layout_width="match_parent"
41 android:layout_height="match_parent"
42 android:orientation="horizontal"
43 android:gravity="center"
44 android:visibility="invisible"
45 android:background="@null" >
46 <com.android.camera.MultiToggleImageButton
47 android:id="@+id/refocus_toggle_button"
Spike Sprague3b92e2f2014-01-02 11:42:12 -080048 android:layout_width="0dp"
49 android:layout_height="match_parent"
Erin Dahlgren4efa8b52013-12-17 18:31:35 -080050 android:layout_weight="1"
51 android:background="@null"
Spike Sprague79718f62014-01-28 18:48:22 -080052 camera:imageIds="@array/refocus_icons"
53 camera:contentDescriptionIds="@array/refocus_descriptions" />
Erin Dahlgren4efa8b52013-12-17 18:31:35 -080054 <com.android.camera.MultiToggleImageButton
55 android:id="@+id/hdr_plus_toggle_button"
Spike Sprague3b92e2f2014-01-02 11:42:12 -080056 android:layout_width="0dp"
57 android:layout_height="match_parent"
Erin Dahlgren4efa8b52013-12-17 18:31:35 -080058 android:background="@null"
59 android:layout_weight="1"
Spike Sprague79718f62014-01-28 18:48:22 -080060 camera:imageIds="@array/pref_camera_hdr_plus_icons"
61 camera:contentDescriptionIds="@array/hdr_plus_descriptions" />
Erin Dahlgren4efa8b52013-12-17 18:31:35 -080062 <com.android.camera.MultiToggleImageButton
63 android:id="@+id/flash_toggle_button"
Spike Sprague3b92e2f2014-01-02 11:42:12 -080064 android:layout_width="0dp"
65 android:layout_height="match_parent"
Erin Dahlgren4efa8b52013-12-17 18:31:35 -080066 android:layout_weight="1"
67 android:background="@null"
Spike Sprague79718f62014-01-28 18:48:22 -080068 camera:imageIds="@array/camera_flashmode_icons"
69 camera:contentDescriptionIds="@array/camera_flash_descriptions" />
Erin Dahlgren4efa8b52013-12-17 18:31:35 -080070 <com.android.camera.MultiToggleImageButton
71 android:id="@+id/camera_toggle_button"
Spike Sprague3b92e2f2014-01-02 11:42:12 -080072 android:layout_width="0dp"
73 android:layout_height="match_parent"
Erin Dahlgren4efa8b52013-12-17 18:31:35 -080074 android:layout_weight="1"
75 android:background="@null"
Spike Sprague79718f62014-01-28 18:48:22 -080076 camera:imageIds="@array/camera_id_icons"
77 camera:contentDescriptionIds="@array/camera_id_descriptions" />
Erin Dahlgren4efa8b52013-12-17 18:31:35 -080078 <ImageButton
79 android:id="@+id/reference_toggle"
Spike Sprague3b92e2f2014-01-02 11:42:12 -080080 android:layout_width="0dp"
81 android:layout_height="match_parent"
Erin Dahlgren4efa8b52013-12-17 18:31:35 -080082 android:src="@drawable/ic_capture_options"
83 android:visibility="invisible"
84 android:layout_weight="1"
85 android:background="@null" />
86 </com.android.camera.ui.TopRightWeightedLayout>
87
88 <com.android.camera.ui.TopRightMostOverlay
Erin Dahlgren56688f72014-01-09 14:30:34 -080089 android:id="@+id/bottombar_options_overlay"
Erin Dahlgren4efa8b52013-12-17 18:31:35 -080090 android:layout_width="match_parent"
91 android:layout_height="match_parent"
92 android:background="@null" >
Spike Sprague3b92e2f2014-01-02 11:42:12 -080093 <com.android.camera.ToggleImageButton
Erin Dahlgren56688f72014-01-09 14:30:34 -080094 android:id="@+id/bottombar_options_toggle"
Spike Sprague3b92e2f2014-01-02 11:42:12 -080095 android:layout_width="wrap_content"
Spike Sprague43f2ddd2014-01-08 10:05:02 -080096 android:layout_height="wrap_content"
Erin Dahlgrenede9a422014-01-13 12:25:45 -080097 android:scaleType="center"
Spike Sprague3b92e2f2014-01-02 11:42:12 -080098 android:background="@null"
Spike Sprague79718f62014-01-28 18:48:22 -080099 camera:imageIds="@array/settings_toggle_icons"
100 camera:contentDescriptionIds="@array/settings_toggle_descriptions" />
Erin Dahlgren4efa8b52013-12-17 18:31:35 -0800101 </com.android.camera.ui.TopRightMostOverlay>
102
103 <com.android.camera.ui.TopRightWeightedLayout
104 android:id="@+id/bottombar_intent"
105 android:layout_width="match_parent"
106 android:layout_height="match_parent"
107 android:orientation="horizontal"
108 android:gravity="center"
109 android:visibility="invisible"
110 android:background="@null" >
111 <ImageButton
112 android:id="@+id/cancel_button"
113 android:layout_width="wrap_content"
114 android:layout_height="wrap_content"
115 android:src="@drawable/ic_cancel"
116 android:layout_weight="1"
Spike Sprague79718f62014-01-28 18:48:22 -0800117 android:background="@null"
118 android:contentDescription="@string/cancel_button_description" />
Erin Dahlgren4efa8b52013-12-17 18:31:35 -0800119 <ImageButton
120 android:id="@+id/done_button"
121 android:layout_width="wrap_content"
122 android:layout_height="wrap_content"
123 android:src="@drawable/ic_confirm"
124 android:layout_weight="1"
Spike Sprague79718f62014-01-28 18:48:22 -0800125 android:background="@null"
126 android:contentDescription="@string/done_button_description" />
Erin Dahlgren4efa8b52013-12-17 18:31:35 -0800127 <ImageButton
128 android:id="@+id/retake_button"
129 android:layout_width="wrap_content"
130 android:layout_height="wrap_content"
131 android:src="@drawable/ic_back"
132 android:layout_weight="1"
Spike Sprague79718f62014-01-28 18:48:22 -0800133 android:background="@null"
134 android:contentDescription="@string/retake_button_description" />
Erin Dahlgren4efa8b52013-12-17 18:31:35 -0800135 </com.android.camera.ui.TopRightWeightedLayout>
136</merge>