video_camera.xml revision b97ccf3f20bee44daf70f10966809e39e30ab4f7
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/video_frame"
31    		android:layout_width="fill_parent"
32    		android:layout_height="fill_parent"
33    		android:visibility="gone" 
34    />
35    
36    <ImageView
37    		android:id="@+id/blackout"
38    		android:layout_width="fill_parent"
39    		android:layout_height="fill_parent"
40    		android:visibility="invisible" 
41    />
42
43    <ImageView
44        android:id="@+id/mode_indicator"
45        android:layout_width="wrap_content"
46        android:layout_height="wrap_content"
47        android:src="@drawable/ic_camera_indicator_video"
48        android:layout_alignParentRight="true"
49        android:layout_alignParentTop="true"
50        android:layout_marginRight="5dip"
51        android:layout_marginTop="15dip"
52        android:scaleType="center"/>
53    
54    <ImageView
55        android:id="@+id/recording_indicator"
56        android:layout_width="wrap_content"
57        android:layout_height="wrap_content"
58        android:src="@drawable/ic_camera_bar_indicator_record"
59        android:layout_alignParentRight="true"
60        android:layout_alignParentTop="true"
61        android:layout_marginRight="15dip"
62        android:layout_marginTop="15dip"
63        android:scaleType="center"
64        android:visibility="gone"/>
65
66    <TextView
67        android:id="@+id/recording_time"
68        android:layout_width="90dip"
69        android:layout_height="wrap_content"
70        android:layout_alignParentRight="true"
71        android:layout_alignParentTop="true"
72        android:layout_marginRight="55dip"
73        android:layout_marginTop="11dip"
74        android:paddingRight="2dip"
75        android:shadowColor="#c0000000"
76        android:shadowDx="1"
77        android:shadowDy="1"
78        android:shadowRadius="1"
79        android:gravity="right"
80        android:textColor="#ffffffff"
81        android:textSize="20dip"
82        android:textStyle="bold"
83        android:visibility="gone"/>
84        
85    <TextView
86    		android:id="@+id/hint_toast"
87    		android:layout_alignParentRight="true"
88    	    android:layout_alignParentTop="true"
89	    	android:background="@drawable/popup_camera_toast"
90            android:layout_width="200dip"
91            android:layout_height="wrap_content"
92            android:gravity="center"
93            android:text="@string/video_camera_button_hint"
94            android:textSize="18sp"/>
95
96	<LinearLayout
97			android:visibility="gone"
98			android:id="@+id/post_picture_panel"
99			android:layout_alignParentBottom="true"
100			android:layout_alignParentRight="true"
101			android:paddingLeft="7dip"
102			android:paddingRight="7dip"
103			android:paddingTop="6dip"
104			android:paddingBottom="6dip"
105			android:layout_width="wrap_content" 
106			android:layout_height="wrap_content"
107			android:orientation="horizontal">
108
109		<com.android.camera.ActionMenuButton
110			android:id="@+id/capture"
111			android:drawableTop="@drawable/ic_menu_capture"
112			android:layout_width="fill_parent"
113			android:layout_height="fill_parent"
114			android:text="@string/camera_capture"
115			style="@style/OnscreenActionIcon"
116		/>
117		<com.android.camera.ActionMenuButton
118			android:id="@+id/play"
119			android:drawableTop="@drawable/ic_menu_camera_play"
120			android:layout_width="wrap_content"
121			android:layout_height="wrap_content"
122			android:text="@string/camera_play"
123			style="@style/OnscreenActionIcon"
124		/>
125		<com.android.camera.ActionMenuButton
126			android:id="@+id/share"
127			android:drawableTop="@drawable/ic_menu_share"
128			android:layout_width="wrap_content"
129			android:layout_height="wrap_content"
130			android:text="@string/camera_share"
131			style="@style/OnscreenActionIcon"
132		/>
133		<com.android.camera.ActionMenuButton
134			android:id="@+id/discard"
135			android:drawableTop="@drawable/ic_menu_delete"
136			android:layout_width="fill_parent"
137			android:layout_height="fill_parent"
138			android:text="@string/camera_toss"
139			style="@style/OnscreenActionIcon"
140		/>
141		<com.android.camera.ActionMenuButton
142			android:id="@+id/accept"
143			android:drawableTop="@drawable/ic_menu_share"
144			android:layout_width="wrap_content"
145			android:layout_height="wrap_content"
146			android:text="@string/camera_accept"
147			style="@style/OnscreenActionIcon"
148		/>
149		<com.android.camera.ActionMenuButton
150			android:id="@+id/cancel"
151			android:drawableTop="@drawable/ic_menu_delete"
152			android:layout_width="wrap_content"
153			android:layout_height="wrap_content"
154			android:text="@string/camera_cancel"
155			style="@style/OnscreenActionIcon"
156		/>
157	</LinearLayout>
158</RelativeLayout>
159
160