camera.xml revision 46fc7aeec04021dfc2f4c947649888dbc7408f53
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:background="@drawable/camera_background"
19        android:id="@+id/camera"
20        android:layout_width="fill_parent"
21        android:layout_height="fill_parent">
22
23    <include android:id="@+id/control_bar" layout="@layout/camera_control"/>
24
25    <FrameLayout android:layout_width="wrap_content"
26            android:layout_height="wrap_content"
27            android:layout_alignParentLeft="true" 
28            android:layout_centerVertical="true"
29            android:layout_marginLeft="13dp"
30            android:background="@drawable/border_view_finder">
31        <com.android.camera.VideoPreview
32                android:id="@+id/camera_preview"
33                android:layout_width="384dp"
34                android:layout_height="288dp"/>
35        <com.android.camera.FocusRectangle
36                android:id="@+id/focus_rectangle"
37                android:layout_width="384dp"
38                android:layout_height="288dp"/>
39    </FrameLayout>
40
41    <ImageView
42            android:id="@+id/gps_indicator"
43            android:layout_width="wrap_content"
44            android:layout_height="wrap_content"
45            android:visibility="invisible"
46            android:clickable="false"
47            android:focusable="false"
48            android:layout_alignParentLeft="true"
49            android:layout_alignParentTop="true"
50            android:layout_marginLeft="18dp"
51            android:layout_marginTop="18dp"/>
52
53</RelativeLayout>
54