1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2012 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.ControlPanelLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 android:layout_height="wrap_content" 18 android:layout_width="match_parent" 19 android:minHeight="@dimen/control_panel_min_length" 20 android:background="@drawable/bg_camera_pattern"> 21 <!-- The height is determined by IndicatorControlWheel so we should set 22 layout_height as wrap_contant but RelativeLayout Javadoc says that 23 this is circular dependency and is not allowed so it's very 24 unfortunate that we have to hardcode the height here. --> 25 26 <include layout="@layout/review_thumbnail" /> 27 <include layout="@layout/review_control" /> 28 <com.android.camera.ui.IndicatorControlWheelContainer android:id="@+id/indicator_control" 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" 31 android:layout_centerHorizontal="true" 32 android:layout_alignParentBottom="true"> 33 <com.android.camera.ShutterButton android:id="@+id/shutter_button" 34 android:layout_height="wrap_content" 35 android:layout_width="wrap_content" 36 android:scaleType="center" 37 android:clickable="true" 38 android:focusable="true" 39 android:contentDescription="@string/accessibility_shutter_button" 40 android:background="@drawable/btn_shutter" /> 41 <com.android.camera.ui.IndicatorControlWheel android:id="@+id/indicator_control_wheel" 42 android:layout_width="match_parent" 43 android:layout_height="match_parent"> 44 <com.android.camera.ui.ZoomControlWheel 45 android:id="@+id/zoom_control" 46 android:layout_width="match_parent" 47 android:layout_height="match_parent" 48 android:visibility="gone" /> 49 </com.android.camera.ui.IndicatorControlWheel> 50 </com.android.camera.ui.IndicatorControlWheelContainer> 51 <include layout="@layout/mode_picker" /> 52 </com.android.camera.ui.ControlPanelLayout> 53