camera.xml revision 1d4c75065966c4f6f56900e31f655bfd1b334435
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 <SurfaceView 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/blackout" 31 android:layout_width="fill_parent" 32 android:layout_height="fill_parent" 33 android:visibility="invisible" 34 /> 35 36 <ImageView 37 android:id="@+id/focus_indicator" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:src="@drawable/ic_camera_indicator_auto_focus_green" 41 android:layout_alignParentRight="true" 42 android:layout_alignParentTop="true" 43 android:layout_marginRight="6dip" 44 android:layout_marginTop="6dip" 45 android:scaleType="center"/> 46 47 <TextView 48 android:id="@+id/hint_toast" 49 android:layout_alignParentRight="true" 50 android:layout_alignParentTop="true" 51 android:background="@drawable/popup_camera_toast" 52 android:layout_width="200dip" 53 android:layout_height="wrap_content" 54 android:gravity="center" 55 android:text="@string/camera_button_hint" 56 android:textSize="18sp" 57 android:visibility="visible"/> 58 59 <AbsoluteLayout 60 android:background="#CC666666" 61 android:visibility="invisible" 62 android:id="@+id/post_picture_panel" 63 android:layout_width="fill_parent" 64 android:layout_height="wrap_content" 65 android:layout_centerHorizontal="true" 66 android:layout_alignParentBottom="true" 67 android:layout_alignParentRight="false"> 68 <View android:layout_width="fill_parent" 69 android:layout_height="1dip" 70 android:background="@android:drawable/divider_horizontal_dark" /> 71 <LinearLayout 72 android:paddingLeft="7dip" 73 android:paddingRight="7dip" 74 android:paddingTop="6dip" 75 android:paddingBottom="6dip" 76 android:layout_width="fill_parent" 77 android:layout_height="wrap_content" 78 android:background="#00000000" 79 android:orientation="horizontal"> 80 <Button 81 android:id="@+id/save" 82 android:textSize="18sp" 83 android:drawableTop="@android:drawable/ic_menu_save" 84 android:layout_width="112dip" 85 android:layout_height="wrap_content" 86 android:text="@string/camera_keep" 87 /> 88 <View android:layout_width="6dip" android:layout_height="6dip" /> 89 <Button 90 android:id="@+id/setas" 91 android:textSize="18sp" 92 android:drawableTop="@android:drawable/ic_menu_set_as" 93 android:layout_width="112dip" 94 android:layout_height="wrap_content" 95 android:text="@string/camera_set" 96 /> 97 <View android:layout_width="6dip" android:layout_height="6dip" /> 98 <Button 99 android:id="@+id/share" 100 android:textSize="18sp" 101 android:drawableTop="@android:drawable/ic_menu_share" 102 android:layout_width="112dip" 103 android:layout_height="wrap_content" 104 android:text="@string/camera_share" 105 /> 106 <View android:layout_width="6dip" android:layout_height="6dip" /> 107 <Button 108 android:id="@+id/discard" 109 android:textSize="18sp" 110 android:drawableTop="@android:drawable/ic_menu_delete" 111 android:layout_width="112dip" 112 android:layout_height="wrap_content" 113 android:text="@string/camera_toss" 114 /> 115 </LinearLayout> 116 </AbsoluteLayout> 117</RelativeLayout> 118 119