camera_control.xml revision ea136afa2f4d38428ad486df5fb0a24db8314a3d
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 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        android:id="@+id/control_panel"
19        android:layout_width="wrap_content"
20        android:layout_height="match_parent"
21        android:minWidth="76dp"
22        android:background="@drawable/bg_camera_pattern">
23
24    <include layout="@layout/review_thumbnail"/>
25    <ImageButton android:id="@+id/btn_done"
26            style="@style/ReviewControlIcon"
27            android:layout_alignParentTop="true"
28            android:layout_centerHorizontal="true"
29            android:layout_marginTop="10dp"
30            android:src="@drawable/ic_menu_done_holo_light"
31            android:visibility="gone"
32            android:onClick="onDoneButtonClicked"/>
33    <com.android.camera.ShutterButton android:id="@+id/shutter_button"
34            android:layout_width="wrap_content"
35            android:layout_height="wrap_content"
36            android:layout_centerInParent="true"
37            android:scaleType="center"
38            android:clickable="true"
39            android:focusable="true"
40            android:background="@drawable/btn_shutter"/>
41
42    <include layout="@layout/mode_picker"/>
43    <LinearLayout
44            android:orientation="vertical"
45            android:layout_alignParentBottom="true"
46            android:layout_centerHorizontal="true"
47            android:layout_height="wrap_content"
48            android:layout_width="wrap_content"
49            android:layout_marginBottom="10dp">
50        <Button android:id="@+id/btn_retake"
51                android:text="@string/review_retake"
52                style="@style/ReviewControlIcon"
53                android:visibility="gone"
54                android:onClick="onRetakeButtonClicked" />
55        <Button android:id="@+id/btn_cancel"
56                android:text="@string/review_cancel"
57                style="@style/ReviewControlIcon"
58                android:visibility="gone"
59                android:onClick="onCancelButtonClicked" />
60    </LinearLayout>
61</com.android.camera.ui.ControlPanelLayout>
62