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:layout_height="@dimen/indicator_bar_width" 25 android:layout_width="match_parent"> 26 <com.android.camera.ui.IndicatorControlBar 27 android:id="@+id/indicator_bar" 28 android:paddingRight="@dimen/indicator_bar_padding" 29 android:paddingLeft="@dimen/indicator_bar_padding" 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" 40 android:layout_height="match_parent" 41 android:layout_width="wrap_content" 42 android:contentDescription="@string/accessibility_second_level_indicators" 43 android:background="@drawable/bg_pressed" 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="@dimen/indicator_bar_padding" 52 android:paddingLeft="@dimen/indicator_bar_padding" 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 <com.android.camera.ui.TwoStateImageView 61 android:id="@+id/back_to_first_level" 62 android:layout_height="match_parent" 63 android:layout_width="wrap_content" 64 android:contentDescription="@string/accessibility_back_to_first_level" 65 android:background="@drawable/bg_pressed" 66 android:src="@drawable/btn_close_settings" /> 67 </com.android.camera.ui.SecondLevelIndicatorControlBar> 68 </RelativeLayout> 69 </com.android.camera.ui.IndicatorControlBarContainer> 70