video_camera.xml revision de365d87520c97d6b1636442e6b5c82a3e036f29
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    <com.android.camera.ShutterButton
44        android:id="@+id/shutter_button"
45        android:layout_width="wrap_content"
46        android:layout_height="wrap_content"
47        android:src="@drawable/ic_camera_indicator_video"
48	    android:background="@drawable/ic_btn_camera_background"
49        android:clickable="true"
50		android:focusable="true"
51        android:layout_alignParentRight="true"
52        android:layout_alignParentTop="true"
53        android:layout_marginRight="10dip"
54        android:layout_marginTop="10dip"
55        android:scaleType="center"/>
56
57    <!-- Note: In this TextView the paddingRight="2"
58         attribute is required because otherwise the
59         text's drop shadow will be clipped. -->
60    <TextView
61        android:id="@+id/recording_time"
62        android:layout_width="90dip"
63        android:layout_height="wrap_content"
64        android:layout_toLeftOf="@id/shutter_button"
65        android:layout_alignTop="@id/shutter_button"
66        android:layout_marginTop="20dip"
67        android:layout_marginRight="6dip"
68        android:paddingRight="2dip"
69        android:shadowColor="#c0000000"
70        android:shadowDx="1"
71        android:shadowDy="1"
72        android:shadowRadius="1"
73        android:gravity="right"
74        android:textColor="@color/recording_time_elapsed_text"
75        android:textSize="20dip"
76        android:textStyle="bold"
77        android:visibility="gone"/>
78
79	<LinearLayout
80			android:visibility="gone"
81			android:id="@+id/post_picture_panel"
82			android:layout_alignTop="@id/shutter_button"
83			android:layout_toLeftOf="@id/shutter_button"
84            android:layout_marginRight="38dip"
85			android:layout_width="wrap_content" 
86			android:layout_height="wrap_content"
87			android:orientation="horizontal">
88
89        <com.android.camera.ActionMenuButton
90            android:id="@+id/gallery"
91            android:drawableTop="@drawable/ic_menu_gallery"
92            android:text="@string/camera_gallery"
93            style="@style/OnscreenActionIcon"
94        />
95        <com.android.camera.ActionMenuButton
96			android:id="@+id/play"
97			android:drawableTop="@drawable/ic_menu_camera_play"
98			android:text="@string/camera_play"
99			style="@style/OnscreenActionIcon"
100		/>
101		<com.android.camera.ActionMenuButton
102			android:id="@+id/share"
103			android:drawableTop="@drawable/ic_menu_share"
104			android:text="@string/camera_share"
105			style="@style/OnscreenActionIcon"
106		/>
107		<com.android.camera.ActionMenuButton
108			android:id="@+id/discard"
109			android:drawableTop="@drawable/ic_menu_delete"
110			android:text="@string/camera_toss"
111			style="@style/OnscreenActionIcon"
112		/>
113		<com.android.camera.ActionMenuButton
114			android:id="@+id/attach"
115			android:drawableTop="@drawable/ic_menu_attach"
116			android:text="@string/camera_attach"
117			style="@style/OnscreenActionIcon"
118		/>
119		<com.android.camera.ActionMenuButton
120			android:id="@+id/cancel"
121			android:drawableTop="@drawable/ic_menu_cancel"
122			android:text="@string/camera_cancel"
123			style="@style/OnscreenActionIcon"
124		/>
125	</LinearLayout>
126    <ImageView
127        android:visibility="visible"
128        android:id="@+id/last_picture_button"
129        android:layout_width="72dip"
130        android:layout_height="72dip"
131        android:clickable="true"
132        android:focusable="false"
133        android:layout_alignParentLeft="true"
134        android:layout_alignParentTop="true"
135        android:layout_marginLeft="10dip"
136        android:layout_marginTop="10dip" />
137</RelativeLayout>
138