summaryrefslogtreecommitdiffstats
path: root/res/layout-land/mode_options.xml
blob: 7e49f4557cd7d568275be22b17c520586faec01c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<com.android.camera.widget.ModeOptions
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:camera="http://schemas.android.com/apk/res/com.android.camera2"
    android:id="@+id/mode_options"
    android:layout_width="@dimen/mode_options_height"
    android:layout_height="match_parent"
    android:layout_gravity="right"
    android:visibility="invisible"
    android:background="#00000000" >
    <com.android.camera.ui.RadioOptions
        android:id="@+id/mode_options_exposure"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:gravity="center"
        android:background="@null"
        camera:selected_drawable="@drawable/button_background_selected_photo"
        android:visibility="invisible" >
        <ImageButton
            android:id="@+id/exposure_p2"
            style="@style/ModeOption"
            android:tag="2"
            android:background="@null"
            android:src="@drawable/ic_exposure_p2"
            android:contentDescription="@string/exposure_compensation_desc_p2" />
        <ImageButton
            android:id="@+id/exposure_p1"
            style="@style/ModeOption"
            android:tag="1"
            android:background="@null"
            android:src="@drawable/ic_exposure_p1"
            android:contentDescription="@string/exposure_compensation_desc_p1" />
        <ImageButton
            android:id="@+id/exposure_0"
            style="@style/ModeOption"
            android:tag="0"
            android:background="@null"
            android:src="@drawable/ic_exposure_0"
            android:contentDescription="@string/exposure_compensation_desc_0" />
        <ImageButton
            android:id="@+id/exposure_n1"
            style="@style/ModeOption"
            android:tag="-1"
            android:background="@null"
            android:src="@drawable/ic_exposure_n1"
            android:contentDescription="@string/exposure_compensation_desc_n1" />
        <ImageButton
            android:id="@+id/exposure_n2"
            style="@style/ModeOption"
            android:tag="-2"
            android:background="@null"
            android:src="@drawable/ic_exposure_n2"
            android:contentDescription="@string/exposure_compensation_desc_n2" />
    </com.android.camera.ui.RadioOptions>

    <com.android.camera.ui.RadioOptions
        android:id="@+id/mode_options_pano"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:gravity="center"
        android:background="@null"
        camera:selected_drawable="@drawable/button_background_selected_pano"
        android:visibility="invisible" >
        <!-- pano image buttons, ids, and descriptions are added at runtime -->
    </com.android.camera.ui.RadioOptions>

    <com.android.camera.ui.TopRightWeightedLayout
        android:id="@+id/mode_options_buttons"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:gravity="center"
        android:visibility="visible"
        android:background="@null"
        android:clipChildren="false"
        android:clipToPadding="false"
        android:alpha="0.0" >
        <com.android.camera.MultiToggleImageButton
            android:id="@+id/camera_toggle_button"
            style="@style/ModeOption"
            camera:imageIds="@array/camera_id_icons"
            camera:contentDescriptionIds="@array/camera_id_descriptions" />
        <com.android.camera.MultiToggleImageButton
            android:id="@+id/flash_toggle_button"
            style="@style/ModeOption"
            camera:imageIds="@array/camera_flashmode_icons"
            camera:contentDescriptionIds="@array/camera_flash_descriptions" />
        <com.android.camera.MultiToggleImageButton
            android:id="@+id/hdr_plus_toggle_button"
            style="@style/ModeOption"
            camera:imageIds="@array/pref_camera_hdr_plus_icons"
            camera:contentDescriptionIds="@array/hdr_plus_descriptions" />
        <com.android.camera.MultiToggleImageButton
            android:id="@+id/grid_lines_toggle_button"
            style="@style/ModeOption"
            camera:imageIds="@array/grid_lines_icons"
            camera:contentDescriptionIds="@array/grid_lines_descriptions" />
        <com.android.camera.MultiToggleImageButton
            android:id="@+id/countdown_toggle_button"
            style="@style/ModeOption"
            camera:imageIds="@array/countdown_duration_icons"
            camera:contentDescriptionIds="@array/countdown_duration_descriptions" />
        <ImageButton
            android:id="@+id/exposure_button"
            style="@style/ModeOption"
            android:background="@null"
            android:src="@drawable/ic_exposure"
            android:contentDescription="@string/manual_exposure_compensation_desc" />
    </com.android.camera.ui.TopRightWeightedLayout>
</com.android.camera.widget.ModeOptions>