camera.xml revision dee42a6e53cb1d0c7194b0cb92028cca353d7c5c
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 <ImageView 29 android:id="@+id/blackout" 30 android:layout_width="fill_parent" 31 android:layout_height="fill_parent" 32 android:visibility="invisible" /> 33 34 <com.android.camera.ShutterButton 35 android:id="@+id/shutter_button" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:src="@drawable/ic_camera_indicator_photo" 39 android:background="@drawable/ic_btn_camera_background" 40 android:clickable="true" 41 android:focusable="true" 42 android:layout_alignParentRight="true" 43 android:layout_alignParentTop="true" 44 android:layout_marginRight="50dip" 45 android:layout_marginTop="12dip" 46 android:scaleType="center" /> 47 48 <ImageView 49 android:id="@+id/focus_indicator" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:src="@drawable/ic_camera_indicator_auto_focus_green" 53 android:layout_alignLeft="@id/shutter_button" 54 android:layout_alignTop="@id/shutter_button" 55 android:layout_marginLeft="39dip" 56 android:layout_marginTop="16dip" 57 android:scaleType="center" 58 android:visibility="gone" /> 59 60 <LinearLayout 61 android:visibility="gone" 62 android:id="@+id/post_picture_panel" 63 android:layout_alignBottom="@id/shutter_button" 64 android:layout_toLeftOf="@id/shutter_button" 65 android:layout_marginRight="27dip" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:orientation="horizontal"> 69 70 <com.android.camera.ActionMenuButton 71 android:id="@+id/attach" 72 android:drawableTop="@drawable/ic_menu_attach" 73 android:text="@string/camera_attach" 74 style="@style/OnscreenActionIcon" 75 /> 76 <com.android.camera.ActionMenuButton 77 android:id="@+id/cancel" 78 android:drawableTop="@drawable/ic_menu_cancel" 79 android:text="@string/camera_cancel" 80 style="@style/OnscreenActionIcon" 81 /> 82 </LinearLayout> 83 84 <ImageView 85 android:visibility="gone" 86 android:id="@+id/last_picture_button" 87 android:layout_width="72dip" 88 android:layout_height="72dip" 89 android:clickable="true" 90 android:focusable="true" 91 android:layout_alignTop="@id/shutter_button" 92 android:layout_toLeftOf="@id/shutter_button" 93 android:layout_marginRight="20dip" /> 94</RelativeLayout> 95 96