camera.xml revision 8250896ab37545f4499da79f54c19af2e5018b80
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/mode_indicator" 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="10dip" 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/mode_indicator" 54 android:layout_alignTop="@id/mode_indicator" 55 android:layout_marginLeft="39dip" 56 android:layout_marginTop="16dip" 57 android:scaleType="center" 58 android:visibility="gone" /> 59 60 <ImageView 61 android:id="@+id/last_picture_button" 62 android:layout_width="75dip" 63 android:layout_height="75dip" 64 android:clickable="true" 65 android:focusable="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