camera.xml revision b97ccf3f20bee44daf70f10966809e39e30ab4f7
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/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 android:visibility="gone"/> 47 48 <ImageView 49 android:id="@+id/mode_indicator" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:src="@drawable/ic_camera_indicator_photo" 53 android:layout_alignParentRight="true" 54 android:layout_alignParentTop="true" 55 android:layout_marginRight="5dip" 56 android:layout_marginTop="15dip" 57 android:scaleType="center"/> 58 59 <ImageView 60 android:id="@+id/last_picture_button" 61 android:layout_width="75dip" 62 android:layout_height="75dip" 63 android:clickable="true" 64 android:focusable="true" 65 android:focusableInTouchMode="true" 66 android:layout_alignParentLeft="true" 67 android:layout_alignParentBottom="true" 68 android:layout_marginLeft="10dip" 69 android:layout_marginBottom="10dip"/> 70 71 <TextView 72 android:id="@+id/hint_toast" 73 android:layout_alignParentRight="true" 74 android:layout_alignParentTop="true" 75 android:background="@drawable/popup_camera_toast" 76 android:layout_width="200dip" 77 android:layout_height="wrap_content" 78 android:gravity="center" 79 android:text="@string/camera_button_hint" 80 android:textSize="18sp"/> 81</RelativeLayout> 82 83