camera.xml revision e7b339c91b554539119abecaf53f552982f60477
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2007 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/camera"
19        android:layout_width="fill_parent"
20        android:layout_height="fill_parent"
21        android:orientation="horizontal">
22
23    <com.android.camera.VideoPreview
24        android:id="@+id/camera_preview"
25        android:layout_width="fill_parent"
26        android:layout_height="fill_parent"
27        android:layout_centerInParent="true" />
28
29    <com.android.camera.ShutterButton
30        android:id="@+id/shutter_button"
31        android:layout_width="wrap_content"
32        android:layout_height="wrap_content"
33        android:src="@drawable/ic_camera_indicator_photo"
34        android:background="@drawable/ic_btn_camera_background"
35        android:clickable="true"
36        android:focusable="true"
37        android:layout_alignParentRight="true"
38        android:layout_alignParentTop="true"
39        android:layout_marginRight="5dip"
40        android:layout_marginTop="5dip"
41        android:scaleType="center" />
42
43    <ImageView
44            android:id="@+id/gps_indicator"
45            android:layout_width="wrap_content"
46            android:layout_height="wrap_content"
47            android:visibility="invisible"
48            android:clickable="false"
49            android:focusable="false"
50            android:layout_alignParentRight="true"
51            android:layout_alignParentTop="true"
52            android:layout_marginRight="18dip"
53            android:layout_marginTop="18dip"
54            android:src="@drawable/ic_gps_active_camera" />
55
56    <ImageView
57        android:id="@+id/focus_indicator"
58        android:layout_width="wrap_content"
59        android:layout_height="wrap_content"
60        android:src="@drawable/ic_camera_indicator_auto_focus_green"
61        android:layout_alignLeft="@id/shutter_button"
62        android:layout_alignTop="@id/shutter_button"
63        android:layout_marginLeft="39dip"
64        android:layout_marginTop="16dip"
65        android:scaleType="center"
66        android:visibility="gone" />
67
68    <ImageView
69        android:visibility="gone"
70        android:id="@+id/last_picture_button"
71        android:layout_width="72dip"
72        android:layout_height="72dip"
73        android:clickable="true"
74        android:focusable="false"
75        android:layout_alignParentLeft="true"
76        android:layout_alignParentTop="true"
77        android:layout_marginLeft="5dip"
78        android:layout_marginTop="5dip" />
79</RelativeLayout>
80