camera.xml revision d8bccef54d490ce562e61fc907201da0c666314e
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:id="@+id/camera" 19 android:layout_width="fill_parent" 20 android:layout_height="fill_parent" 21 android:orientation="horizontal"> 22 23 <com.android.camera.VideoPreview 24 android:id="@+id/camera_preview" 25 android:layout_width="fill_parent" 26 android:layout_height="fill_parent" 27 android:layout_centerInParent="true" /> 28 29 <View 30 android:id="@+id/blackout" 31 android:background="#ff000000" 32 android:layout_width="fill_parent" 33 android:layout_height="fill_parent" 34 android:visibility="invisible" /> 35 36 <com.android.camera.ShutterButton 37 android:id="@+id/shutter_button" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:src="@drawable/ic_camera_indicator_photo" 41 android:background="@drawable/ic_btn_camera_background" 42 android:clickable="true" 43 android:focusable="true" 44 android:layout_alignParentRight="true" 45 android:layout_alignParentTop="true" 46 android:layout_marginRight="50dip" 47 android:layout_marginTop="10dip" 48 android:scaleType="center" /> 49 50 <ImageView 51 android:id="@+id/focus_indicator" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:src="@drawable/ic_camera_indicator_auto_focus_green" 55 android:layout_alignLeft="@id/shutter_button" 56 android:layout_alignTop="@id/shutter_button" 57 android:layout_marginLeft="39dip" 58 android:layout_marginTop="16dip" 59 android:scaleType="center" 60 android:visibility="gone" /> 61 62 <ImageView 63 android:visibility="gone" 64 android:id="@+id/last_picture_button" 65 android:layout_width="72dip" 66 android:layout_height="72dip" 67 android:clickable="true" 68 android:focusable="true" 69 android:layout_alignParentLeft="true" 70 android:layout_alignParentTop="true" 71 android:layout_marginLeft="10dip" 72 android:layout_marginTop="10dip" /> 73</RelativeLayout> 74