camera.xml revision 9c061072c8f4ec16acf25e0af7ca3d8317d1026f
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:layout_width="fill_parent"
19        android:layout_height="fill_parent"
20        android:orientation="horizontal">
21
22    <com.android.camera.VideoPreview
23            android:id="@+id/camera_preview"
24            android:layout_width="fill_parent"
25            android:layout_height="fill_parent"
26            android:layout_centerInParent="true"
27            />
28          
29    <ImageView
30            android:id="@+id/blackout"
31            android:layout_width="fill_parent"
32            android:layout_height="fill_parent"
33            android:visibility="invisible" 
34    />
35
36    <ImageView
37        android:id="@+id/focus_indicator"
38        android:layout_width="wrap_content"
39        android:layout_height="wrap_content"
40        android:src="@drawable/ic_camera_indicator_auto_focus_green"
41        android:layout_alignParentRight="true"
42        android:layout_alignParentTop="true"
43        android:layout_marginRight="6dip"
44        android:layout_marginTop="6dip"
45        android:scaleType="center"
46        android:visibility="gone"/>
47
48    <ImageView
49        android:id="@+id/mode_indicator"
50        android:layout_width="wrap_content"
51        android:layout_height="wrap_content"
52        android:src="@drawable/ic_camera_indicator_photo_combo"
53        android:clickable="true"
54		android:focusable="true"
55        android:layout_alignParentRight="true"
56        android:layout_alignParentTop="true"
57        android:layout_marginRight="5dip"
58        android:layout_marginTop="15dip"
59        android:scaleType="center"/>
60
61	<ImageView
62	    android:id="@+id/last_picture_button"
63		android:layout_width="75dip"
64		android:layout_height="75dip"
65		android:clickable="true"
66		android:focusable="true"
67        android:layout_alignParentLeft="true"
68        android:layout_alignParentBottom="true"
69        android:layout_marginLeft="10dip"
70        android:layout_marginBottom="10dip"/>
71    
72    <TextView
73            android:id="@+id/hint_toast"
74            android:layout_alignParentRight="true"
75            android:layout_alignParentTop="true"
76            android:background="@drawable/popup_camera_toast"
77            android:layout_width="200dip"
78            android:layout_height="wrap_content"
79            android:gravity="center"
80            android:text="@string/camera_button_hint"
81            android:textSize="18sp"/>
82</RelativeLayout>
83
84