camera.xml revision 0eaec58e292ce4eaa6baadecf643f0f65e48d278
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"
53        android:layout_alignParentRight="true"
54        android:layout_alignParentTop="true"
55        android:layout_marginRight="5dip"
56        android:layout_marginTop="15dip"
57        android:scaleType="center"/>
58    
59    <TextView
60            android:id="@+id/hint_toast"
61            android:layout_alignParentRight="true"
62            android:layout_alignParentTop="true"
63            android:background="@drawable/popup_camera_toast"
64            android:layout_width="200dip"
65            android:layout_height="wrap_content"
66            android:gravity="center"
67            android:text="@string/camera_button_hint"
68            android:textSize="18sp"/>
69
70    <LinearLayout
71            android:visibility="gone"
72            android:id="@+id/post_picture_panel"
73            android:layout_alignParentBottom="true"
74            android:layout_alignParentRight="true"
75            android:paddingLeft="7dip"
76            android:paddingRight="7dip"
77            android:paddingTop="6dip"
78            android:paddingBottom="6dip"
79            android:layout_width="wrap_content" 
80            android:layout_height="wrap_content"
81            android:orientation="horizontal">
82
83        <com.android.camera.ActionMenuButton
84            android:id="@+id/setas"
85            android:drawableTop="@drawable/ic_menu_set_as"
86            android:layout_width="wrap_content"
87            android:layout_height="wrap_content"
88            android:text="@string/camera_set"
89            style="@style/OnscreenActionIcon"
90        />
91        <com.android.camera.ActionMenuButton
92            android:id="@+id/share"
93            android:drawableTop="@drawable/ic_menu_share"
94            android:layout_width="wrap_content"
95            android:layout_height="wrap_content"
96            android:text="@string/camera_share"
97            style="@style/OnscreenActionIcon"
98        />
99        <com.android.camera.ActionMenuButton
100            android:id="@+id/discard"
101            android:drawableTop="@drawable/ic_menu_delete"
102            android:layout_width="fill_parent"
103            android:layout_height="fill_parent"
104            android:text="@string/camera_toss"
105            style="@style/OnscreenActionIcon"
106        />
107    </LinearLayout>
108</RelativeLayout>
109
110