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