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