video_camera.xml revision 9c061072c8f4ec16acf25e0af7ca3d8317d1026f
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_combo" 48 android:clickable="true" 49 android:focusable="true" 50 android:layout_alignParentRight="true" 51 android:layout_alignParentTop="true" 52 android:layout_marginRight="5dip" 53 android:layout_marginTop="15dip" 54 android:scaleType="center"/> 55 56 <ImageView 57 android:id="@+id/recording_indicator" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:src="@drawable/ic_camera_bar_indicator_record_combo" 61 android:clickable="true" 62 android:focusable="true" 63 android:layout_alignParentRight="true" 64 android:layout_alignParentTop="true" 65 android:layout_marginRight="15dip" 66 android:layout_marginTop="15dip" 67 android:scaleType="center" 68 android:visibility="gone"/> 69 70 <TextView 71 android:id="@+id/recording_time" 72 android:layout_width="90dip" 73 android:layout_height="wrap_content" 74 android:layout_alignParentRight="true" 75 android:layout_alignParentTop="true" 76 android:layout_marginRight="55dip" 77 android:layout_marginTop="11dip" 78 android:paddingRight="2dip" 79 android:shadowColor="#c0000000" 80 android:shadowDx="1" 81 android:shadowDy="1" 82 android:shadowRadius="1" 83 android:gravity="right" 84 android:textColor="#ffffffff" 85 android:textSize="20dip" 86 android:textStyle="bold" 87 android:visibility="gone"/> 88 89 <TextView 90 android:id="@+id/hint_toast" 91 android:layout_alignParentRight="true" 92 android:layout_alignParentTop="true" 93 android:background="@drawable/popup_camera_toast" 94 android:layout_width="200dip" 95 android:layout_height="wrap_content" 96 android:gravity="center" 97 android:text="@string/video_camera_button_hint" 98 android:textSize="18sp"/> 99 100 <LinearLayout 101 android:visibility="gone" 102 android:id="@+id/post_picture_panel" 103 android:layout_alignParentBottom="true" 104 android:layout_alignParentRight="true" 105 android:paddingLeft="7dip" 106 android:paddingRight="7dip" 107 android:paddingTop="6dip" 108 android:paddingBottom="6dip" 109 android:layout_width="wrap_content" 110 android:layout_height="wrap_content" 111 android:orientation="horizontal"> 112 113 <com.android.camera.ActionMenuButton 114 android:id="@+id/capture" 115 android:drawableTop="@drawable/ic_menu_capture" 116 android:layout_width="fill_parent" 117 android:layout_height="fill_parent" 118 android:text="@string/camera_capture" 119 style="@style/OnscreenActionIcon" 120 /> 121 <com.android.camera.ActionMenuButton 122 android:id="@+id/play" 123 android:drawableTop="@drawable/ic_menu_camera_play" 124 android:layout_width="wrap_content" 125 android:layout_height="wrap_content" 126 android:text="@string/camera_play" 127 style="@style/OnscreenActionIcon" 128 /> 129 <com.android.camera.ActionMenuButton 130 android:id="@+id/share" 131 android:drawableTop="@drawable/ic_menu_share" 132 android:layout_width="wrap_content" 133 android:layout_height="wrap_content" 134 android:text="@string/camera_share" 135 style="@style/OnscreenActionIcon" 136 /> 137 <com.android.camera.ActionMenuButton 138 android:id="@+id/discard" 139 android:drawableTop="@drawable/ic_menu_delete" 140 android:layout_width="fill_parent" 141 android:layout_height="fill_parent" 142 android:text="@string/camera_toss" 143 style="@style/OnscreenActionIcon" 144 /> 145 <com.android.camera.ActionMenuButton 146 android:id="@+id/accept" 147 android:drawableTop="@drawable/ic_menu_share" 148 android:layout_width="wrap_content" 149 android:layout_height="wrap_content" 150 android:text="@string/camera_accept" 151 style="@style/OnscreenActionIcon" 152 /> 153 <com.android.camera.ActionMenuButton 154 android:id="@+id/cancel" 155 android:drawableTop="@drawable/ic_menu_delete" 156 android:layout_width="wrap_content" 157 android:layout_height="wrap_content" 158 android:text="@string/camera_cancel" 159 style="@style/OnscreenActionIcon" 160 /> 161 </LinearLayout> 162</RelativeLayout> 163 164