video_camera.xml revision 8250896ab37545f4499da79f54c19af2e5018b80
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: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="50dip" 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/mode_indicator" 65 android:layout_alignTop="@id/mode_indicator" 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="#ffffffff" 75 android:textSize="20dip" 76 android:textStyle="bold" 77 android:visibility="gone"/> 78 79 <TextView 80 android:id="@+id/hint_toast" 81 android:layout_alignParentRight="true" 82 android:layout_alignParentTop="true" 83 android:background="@drawable/popup_camera_toast" 84 android:layout_width="200dip" 85 android:layout_height="wrap_content" 86 android:gravity="center" 87 android:text="@string/video_camera_button_hint" 88 android:textSize="18sp"/> 89 90 <LinearLayout 91 android:visibility="gone" 92 android:id="@+id/post_picture_panel" 93 android:layout_alignTop="@id/mode_indicator" 94 android:layout_toLeftOf="@id/mode_indicator" 95 android:paddingLeft="7dip" 96 android:paddingRight="15dip" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:orientation="horizontal"> 100 101 <com.android.camera.ActionMenuButton 102 android:id="@+id/play" 103 android:drawableTop="@drawable/ic_menu_camera_play" 104 android:layout_width="wrap_content" 105 android:layout_height="wrap_content" 106 android:text="@string/camera_play" 107 style="@style/OnscreenActionIcon" 108 /> 109 <com.android.camera.ActionMenuButton 110 android:id="@+id/share" 111 android:drawableTop="@drawable/ic_menu_share" 112 android:layout_width="wrap_content" 113 android:layout_height="wrap_content" 114 android:text="@string/camera_share" 115 style="@style/OnscreenActionIcon" 116 /> 117 <com.android.camera.ActionMenuButton 118 android:id="@+id/discard" 119 android:drawableTop="@drawable/ic_menu_delete" 120 android:layout_width="fill_parent" 121 android:layout_height="fill_parent" 122 android:text="@string/camera_toss" 123 style="@style/OnscreenActionIcon" 124 /> 125 <com.android.camera.ActionMenuButton 126 android:id="@+id/attach" 127 android:drawableTop="@drawable/ic_menu_attach" 128 android:layout_width="wrap_content" 129 android:layout_height="wrap_content" 130 android:text="@string/camera_attach" 131 style="@style/OnscreenActionIcon" 132 /> 133 <com.android.camera.ActionMenuButton 134 android:id="@+id/cancel" 135 android:drawableTop="@drawable/ic_menu_cancel" 136 android:layout_width="wrap_content" 137 android:layout_height="wrap_content" 138 android:text="@string/camera_cancel" 139 style="@style/OnscreenActionIcon" 140 /> 141 </LinearLayout> 142</RelativeLayout> 143 144