camera_control.xml revision 84f96469f8c54fcdc61b6e854cd478abc15c4f52
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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
18        android:id="@+id/control_bar"
19        android:orientation="vertical"
20        android:layout_height="fill_parent"
21        android:layout_width="wrap_content"
22        android:layout_marginRight="4dp"
23        android:layout_marginTop="13dp"
24        android:layout_marginBottom="10dp"
25        android:layout_alignParentRight="true">
26
27    <ImageView android:id="@+id/review_thumbnail"
28            android:layout_alignParentTop="true"
29            android:layout_centerHorizontal="true"
30            android:layout_height="52dp"
31            android:layout_width="52dp"
32            android:scaleType="center"
33            android:clickable="true"
34            android:focusable="false"
35            android:background="@drawable/border_last_picture"/>
36
37    <LinearLayout android:id="@+id/camera_switch_set"
38            android:orientation="vertical"
39            android:layout_centerInParent="true"
40            android:layout_height="wrap_content"
41            android:layout_width="wrap_content">
42        <ImageView android:layout_height="wrap_content"
43                android:layout_width="wrap_content"
44                android:src="@drawable/btn_ic_mode_switch_video"/>
45        <com.android.camera.Switcher android:id="@+id/camera_switch"
46                android:layout_width="wrap_content"
47                android:layout_height="70dp"
48                android:src="@drawable/btn_mode_switch_knob"
49                android:background="@drawable/btn_mode_switch_bg" />
50        <ImageView android:layout_height="wrap_content"
51                android:layout_width="wrap_content"
52                android:layout_marginBottom="3dp"
53                android:src="@drawable/btn_ic_mode_switch_camera"/>
54    </LinearLayout>
55    
56    <com.android.camera.ShutterButton android:id="@+id/shutter_button"
57            android:layout_alignParentBottom="true"
58            android:layout_centerHorizontal="true"
59            android:layout_height="wrap_content"
60            android:layout_width="wrap_content"
61            android:scaleType="center"
62            android:clickable="true"
63            android:focusable="true"
64            android:src="@drawable/btn_ic_camera_shutter"
65            android:background="@drawable/btn_shutter"/>
66</RelativeLayout>
67
68