• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2014 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
17<com.android.camera.widget.ModeOptions
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:camera="http://schemas.android.com/apk/res/com.android.camera2"
20    android:id="@+id/mode_options"
21    android:layout_width="@dimen/mode_options_height"
22    android:layout_height="match_parent"
23    android:layout_gravity="right"
24    android:visibility="invisible"
25    android:background="#00000000" >
26    <com.android.camera.ui.RadioOptions
27        android:id="@+id/mode_options_exposure"
28        android:layout_width="match_parent"
29        android:layout_height="match_parent"
30        android:orientation="vertical"
31        android:gravity="center"
32        android:background="@null"
33        camera:selected_drawable="@drawable/button_background_selected_photo"
34        android:visibility="invisible" >
35        <ImageButton
36            android:id="@+id/exposure_p2"
37            style="@style/ModeOption"
38            android:tag="2"
39            android:background="@null"
40            android:src="@drawable/ic_exposure_p2"
41            android:contentDescription="@string/exposure_compensation_desc_p2" />
42        <ImageButton
43            android:id="@+id/exposure_p1"
44            style="@style/ModeOption"
45            android:tag="1"
46            android:background="@null"
47            android:src="@drawable/ic_exposure_p1"
48            android:contentDescription="@string/exposure_compensation_desc_p1" />
49        <ImageButton
50            android:id="@+id/exposure_0"
51            style="@style/ModeOption"
52            android:tag="0"
53            android:background="@null"
54            android:src="@drawable/ic_exposure_0"
55            android:contentDescription="@string/exposure_compensation_desc_0" />
56        <ImageButton
57            android:id="@+id/exposure_n1"
58            style="@style/ModeOption"
59            android:tag="-1"
60            android:background="@null"
61            android:src="@drawable/ic_exposure_n1"
62            android:contentDescription="@string/exposure_compensation_desc_n1" />
63        <ImageButton
64            android:id="@+id/exposure_n2"
65            style="@style/ModeOption"
66            android:tag="-2"
67            android:background="@null"
68            android:src="@drawable/ic_exposure_n2"
69            android:contentDescription="@string/exposure_compensation_desc_n2" />
70    </com.android.camera.ui.RadioOptions>
71
72    <com.android.camera.ui.RadioOptions
73        android:id="@+id/mode_options_pano"
74        android:layout_width="match_parent"
75        android:layout_height="match_parent"
76        android:orientation="vertical"
77        android:gravity="center"
78        android:background="@null"
79        camera:selected_drawable="@drawable/button_background_selected_pano"
80        android:visibility="invisible" >
81        <!-- pano image buttons, ids, and descriptions are added at runtime -->
82    </com.android.camera.ui.RadioOptions>
83
84    <com.android.camera.ui.TopRightWeightedLayout
85        android:id="@+id/mode_options_buttons"
86        android:layout_width="match_parent"
87        android:layout_height="match_parent"
88        android:orientation="vertical"
89        android:gravity="center"
90        android:visibility="visible"
91        android:background="@null"
92        android:clipChildren="false"
93        android:clipToPadding="false"
94        android:alpha="0.0" >
95        <com.android.camera.MultiToggleImageButton
96            android:id="@+id/camera_toggle_button"
97            style="@style/ModeOption"
98            camera:imageIds="@array/camera_id_icons"
99            camera:contentDescriptionIds="@array/camera_id_descriptions" />
100        <com.android.camera.MultiToggleImageButton
101            android:id="@+id/flash_toggle_button"
102            style="@style/ModeOption"
103            camera:imageIds="@array/camera_flashmode_icons"
104            camera:contentDescriptionIds="@array/camera_flash_descriptions" />
105        <com.android.camera.MultiToggleImageButton
106            android:id="@+id/hdr_plus_toggle_button"
107            style="@style/ModeOption"
108            camera:imageIds="@array/pref_camera_hdr_plus_icons"
109            camera:contentDescriptionIds="@array/hdr_plus_descriptions" />
110        <com.android.camera.MultiToggleImageButton
111            android:id="@+id/grid_lines_toggle_button"
112            style="@style/ModeOption"
113            camera:imageIds="@array/grid_lines_icons"
114            camera:contentDescriptionIds="@array/grid_lines_descriptions" />
115        <com.android.camera.MultiToggleImageButton
116            android:id="@+id/countdown_toggle_button"
117            style="@style/ModeOption"
118            camera:imageIds="@array/countdown_duration_icons"
119            camera:contentDescriptionIds="@array/countdown_duration_descriptions" />
120        <ImageButton
121            android:id="@+id/exposure_button"
122            style="@style/ModeOption"
123            android:background="@null"
124            android:src="@drawable/ic_exposure"
125            android:contentDescription="@string/manual_exposure_compensation_desc" />
126    </com.android.camera.ui.TopRightWeightedLayout>
127</com.android.camera.widget.ModeOptions>
128