indicator_bar.xml revision 26d88fce15a24362644123af5f0cce79ea572e7b
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.ui.IndicatorControlBarContainer xmlns:android="http://schemas.android.com/apk/res/android"
17        android:id="@+id/indicator_control"
18        android:layout_width="wrap_content"
19        android:layout_height="match_parent"
20        android:clickable="true"
21        android:layout_alignParentRight="true">
22
23    <RelativeLayout
24            android:id="@+id/control_bars"
25            android:layout_toRightOf="@+id/zoom_index_bar"
26            android:layout_width="@dimen/indicator_bar_width"
27            android:layout_height="match_parent">
28        <com.android.camera.ui.IndicatorControlBar
29                android:id="@+id/indicator_bar"
30                android:padding="8dp"
31                android:layout_width="match_parent"
32                android:layout_height="match_parent"
33                android:layout_centerHorizontal="true">
34            <com.android.camera.ui.ZoomControlBar
35                    android:id="@+id/zoom_control"
36                    android:layout_width="match_parent"
37                    android:layout_height="match_parent"
38                    android:visibility="gone" />
39            <com.android.camera.ui.RotateImageView
40                    android:id="@+id/second_level_indicator_bar_icon"
41                    android:layout_width="match_parent"
42                    android:layout_height="wrap_content"
43                    android:layout_alignParentBottom="true"
44                    android:contentDescription="@string/accessibility_second_level_indicators"
45                    android:src="@drawable/ic_settings_holo_light" />
46        </com.android.camera.ui.IndicatorControlBar>
47
48        <com.android.camera.ui.SecondLevelIndicatorControlBar
49                android:id="@+id/second_level_indicator_bar"
50                android:layout_width="match_parent"
51                android:layout_height="match_parent"
52                android:paddingTop="8dp"
53                android:paddingBottom="8dp"
54                android:layout_centerHorizontal="true"
55                android:background="@color/indicator_background"
56                android:visibility="gone">
57            <View android:id="@+id/divider"
58                    android:layout_width="match_parent"
59                    android:layout_height="1dp"
60                    android:background="@android:color/white" />
61            <View android:id="@+id/indicator_highlight"
62                    android:layout_alignParentLeft="true"
63                    android:layout_width="3dp"
64                    android:layout_height="0dp"
65                    android:background="@color/mode_selection_border"
66                    android:visibility="gone" />
67            <com.android.camera.ui.ColorFilterImageView
68                    android:id="@+id/back_to_first_level"
69                    android:layout_width="match_parent"
70                    android:layout_height="wrap_content"
71                    android:contentDescription="@string/accessibility_back_to_first_level"
72                    android:src="@drawable/btn_close_settings" />
73        </com.android.camera.ui.SecondLevelIndicatorControlBar>
74
75    </RelativeLayout>
76</com.android.camera.ui.IndicatorControlBarContainer>
77