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