video_camera.xml revision 07c90568c7b0568e6cb75559bd13e5d000ac040f
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="38dip" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:orientation="horizontal"> 81 82 <com.android.camera.ActionMenuButton 83 android:id="@+id/gallery" 84 android:drawableTop="@drawable/ic_menu_gallery" 85 android:text="@string/camera_gallery" 86 style="@style/OnscreenActionIcon" 87 /> 88 <com.android.camera.ActionMenuButton 89 android:id="@+id/play" 90 android:drawableTop="@drawable/ic_menu_camera_play" 91 android:text="@string/camera_play" 92 style="@style/OnscreenActionIcon" 93 /> 94 <com.android.camera.ActionMenuButton 95 android:id="@+id/share" 96 android:drawableTop="@drawable/ic_menu_share" 97 android:text="@string/camera_share" 98 style="@style/OnscreenActionIcon" 99 /> 100 <com.android.camera.ActionMenuButton 101 android:id="@+id/discard" 102 android:drawableTop="@drawable/ic_menu_delete" 103 android:text="@string/camera_toss" 104 style="@style/OnscreenActionIcon" 105 /> 106 <com.android.camera.ActionMenuButton 107 android:id="@+id/attach" 108 android:drawableTop="@drawable/ic_menu_attach" 109 android:text="@string/camera_attach" 110 style="@style/OnscreenActionIcon" 111 /> 112 <com.android.camera.ActionMenuButton 113 android:id="@+id/cancel" 114 android:drawableTop="@drawable/ic_menu_cancel" 115 android:text="@string/camera_cancel" 116 style="@style/OnscreenActionIcon" 117 /> 118 </LinearLayout> 119 <ImageView 120 android:visibility="visible" 121 android:id="@+id/last_picture_button" 122 android:layout_width="72dip" 123 android:layout_height="72dip" 124 android:clickable="true" 125 android:focusable="false" 126 android:layout_alignParentLeft="true" 127 android:layout_alignParentTop="true" 128 android:layout_marginLeft="5dip" 129 android:layout_marginTop="5dip"/> 130</RelativeLayout> 131