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