camera.xml revision c1f2e3021bf7b12f2a33561e09bd0ab32530382e
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        android:background="@drawable/camera_background"
19        android:id="@+id/camera"
20        android:orientation="horizontal"
21        android:layout_width="fill_parent"
22        android:layout_height="fill_parent">
23    <RelativeLayout android:layout_width="0px"
24            android:layout_height="fill_parent"
25            android:layout_weight="1">
26        <LinearLayout android:layout_width="wrap_content"
27                android:layout_height="wrap_content"
28                android:layout_centerInParent="true"
29                android:gravity="center_vertical"
30                android:orientation="horizontal">
31            <ImageView android:id="@+id/btn_gripper"
32                    android:layout_marginRight="1dp"
33                    android:background="@drawable/btn_gripper"
34                    android:layout_width="wrap_content"
35                    android:layout_height="wrap_content"
36                    android:layout_alignParentLeft="true"
37                    android:layout_centerVertical="true"/>
38            <FrameLayout android:id="@+id/frame"
39                    android:layout_width="wrap_content"
40                    android:layout_height="wrap_content"
41                    android:layout_centerVertical="true"
42                    android:background="@drawable/border_view_finder">
43                <com.android.camera.VideoPreview
44                        android:id="@+id/camera_preview"
45                        android:layout_width="384dp"
46                        android:layout_height="288dp"/>
47                <com.android.camera.FocusRectangle
48                        android:id="@+id/focus_rectangle"
49                        android:layout_width="384dp"
50                        android:layout_height="288dp"/>
51                <ImageView
52                        android:id="@+id/gps_indicator"
53                        android:layout_width="wrap_content"
54                        android:layout_height="wrap_content"
55                        android:visibility="invisible"
56                        android:clickable="false"
57                        android:focusable="false"
58                        android:layout_marginLeft="5dp"
59                        android:layout_marginTop="5dp"/>
60                <com.android.camera.FlashButton
61                        android:id="@+id/flash_button"
62                        android:layout_width="64dp"
63                        android:layout_height="64dp"
64                        android:layout_gravity="left|bottom"
65                        android:visibility="invisible"
66                        android:clickable="true"
67                        android:focusable="false"
68                        android:layout_marginBottom="5dp"/>
69            </FrameLayout>
70        </LinearLayout>
71    </RelativeLayout>
72</LinearLayout>
73