indicator_bar.xml revision 6b3f2ff14ca0a0d694d5af13e4d5a392c8552191
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 <com.android.camera.ui.ZoomIndexBar 24 android:id="@+id/zoom_index_bar" 25 android:layout_width="5dp" 26 android:layout_height="match_parent" 27 android:background="@android:color/transparent" 28 android:layout_alignParentLeft="true" 29 android:visibility="gone"> 30 <View android:id="@+id/zoom_index" 31 android:scaleType="fitXY" 32 android:layout_width="match_parent" 33 android:layout_height="match_parent" 34 android:background="@color/review_control_pressed_color"/> 35 </com.android.camera.ui.ZoomIndexBar> 36 37 <RelativeLayout 38 android:id="@+id/control_bars" 39 android:layout_toRightOf="@+id/zoom_index_bar" 40 android:layout_width="48dp" 41 android:layout_height="match_parent"> 42 <com.android.camera.ui.IndicatorControlBar 43 android:id="@+id/indicator_bar" 44 android:padding="8dp" 45 android:layout_width="match_parent" 46 android:layout_height="match_parent" 47 android:layout_centerHorizontal="true"> 48 <com.android.camera.ui.ColorFilterImageView 49 android:id="@+id/zoom_control_icon" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:layout_centerInParent="true" 53 android:src="@drawable/btn_zoom_control" 54 android:visibility="gone" /> 55 <com.android.camera.ui.RotateImageView 56 android:id="@+id/second_level_indicator_bar_icon" 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:layout_alignParentBottom="true" 60 android:src="@drawable/ic_settings_holo_light" /> 61 </com.android.camera.ui.IndicatorControlBar> 62 63 <com.android.camera.ui.ZoomControlBar 64 android:id="@+id/zoom_control" 65 android:layout_width="match_parent" 66 android:layout_height="match_parent" 67 android:layout_centerHorizontal="true" 68 android:visibility="gone" /> 69 <com.android.camera.ui.SecondLevelIndicatorControlBar 70 android:id="@+id/second_level_indicator_bar" 71 android:padding="8dp" 72 android:layout_width="match_parent" 73 android:layout_height="match_parent" 74 android:layout_centerHorizontal="true" 75 android:background="@color/indicator_background" 76 android:visibility="gone"> 77 <View android:id="@+id/divider" 78 android:layout_width="match_parent" 79 android:layout_height="1dp" 80 android:layout_marginTop="8dp" 81 android:background="@android:color/white"/> 82 </com.android.camera.ui.SecondLevelIndicatorControlBar> 83 84 </RelativeLayout> 85</com.android.camera.ui.IndicatorControlBarContainer> 86