camera.xml revision 37acf79b1cc060f355c9cd1803c2bdd5e39deb27
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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18        xmlns:camera="http://schemas.android.com/apk/res/com.android.camera"
19        android:background="@drawable/camera_background"
20        android:id="@+id/camera"
21        android:orientation="horizontal"
22        android:layout_width="fill_parent"
23        android:layout_height="fill_parent">
24    <RelativeLayout android:layout_width="0px"
25            android:layout_height="fill_parent"
26            android:layout_weight="1">
27        <LinearLayout android:layout_width="wrap_content"
28                android:layout_height="wrap_content"
29                android:layout_centerInParent="true"
30                android:gravity="center_vertical"
31                android:orientation="horizontal">
32            <ImageView android:id="@+id/btn_gripper"
33                    android:layout_marginRight="1dp"
34                    android:background="@drawable/btn_gripper"
35                    android:layout_width="wrap_content"
36                    android:layout_height="wrap_content"
37                    android:layout_alignParentLeft="true"
38                    android:layout_centerVertical="true"/>
39            <FrameLayout android:id="@+id/frame"
40                    android:layout_width="wrap_content"
41                    android:layout_height="wrap_content"
42                    android:layout_centerVertical="true"
43                    android:background="@drawable/border_view_finder">
44                <com.android.camera.VideoPreview
45                        android:id="@+id/camera_preview"
46                        android:layout_width="384dp"
47                        android:layout_height="288dp"/>
48                <com.android.camera.FocusRectangle
49                        android:id="@+id/focus_rectangle"
50                        android:layout_width="384dp"
51                        android:layout_height="288dp"/>
52                <com.android.camera.EvenlySpacedLayout
53                        camera:orientation="vertical"
54                        android:visibility="visible"
55                        android:layout_gravity="left|fill_vertical"
56                        android:id="@+id/action_icon_panel"
57                        android:layout_marginTop="20dp"
58                        android:layout_marginLeft="10dp"
59                        android:layout_width="wrap_content"
60                        android:layout_height="288dp">
61                    <com.android.camera.IconIndicator
62                            android:layout_width="wrap_content"
63                            android:layout_height="wrap_content"
64                            android:id="@+id/gps_icon"
65                            camera:modes="@array/gps_modes"
66                            camera:icons="@array/gps_icons"
67                            android:visibility="visible"/>
68                    <com.android.camera.IconIndicator
69                            android:layout_width="wrap_content"
70                            android:layout_height="wrap_content"
71                            android:id="@+id/flash_icon"
72                            camera:modes="@array/pref_camera_flashmode_entryvalues"
73                            camera:icons="@array/flash_icons"
74                            android:visibility="visible"/>
75                </com.android.camera.EvenlySpacedLayout>
76            </FrameLayout>
77        </LinearLayout>
78    </RelativeLayout>
79</LinearLayout>
80