pano_capture.xml revision d33109730e0ab81230f84e2bd35599e8e24fc4ba
1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2011 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/pano_capture_layout" 19 android:layout_height="match_parent" 20 android:layout_width="match_parent" 21 android:orientation="horizontal"> 22 23 <RelativeLayout android:id="@+id/frame_layout" 24 android:layout_width="0dp" 25 android:layout_height="match_parent" 26 android:layout_weight="1"> 27 28 <LinearLayout android:id="@+id/pano_capture_preview" 29 android:layout_width="match_parent" 30 android:layout_height="match_parent" 31 android:orientation="vertical"> 32 33 <!-- The top bar with capture indication --> 34 <FrameLayout android:id="@+id/pano_capture_indicator_layout" 35 style="@style/PanoViewHorizontalBar" 36 android:padding="5dp"> 37 38 <com.android.camera.ui.RotateLayout 39 android:id="@+id/pano_capture_indicator" 40 android:visibility="gone" 41 android:layout_gravity="top|left" 42 android:layout_width="match_parent" 43 android:layout_height="match_parent"> 44 <TextView 45 android:text="@string/pano_capture_indication" 46 android:paddingLeft="0dp" 47 android:drawablePadding="5sp" 48 android:drawableLeft="@drawable/ic_pan_recording_indicator" 49 android:layout_marginLeft="16dp" 50 android:layout_marginTop="16dp" 51 android:layout_width="wrap_content" 52 android:layout_height="wrap_content" /> 53 </com.android.camera.ui.RotateLayout> 54 </FrameLayout> 55 56 <RelativeLayout 57 android:layout_gravity="center" 58 android:layout_width="match_parent" 59 android:layout_height="@dimen/pano_mosaic_surface_height"> 60 <com.android.camera.panorama.MosaicRendererSurfaceView 61 android:id="@+id/pano_renderer" 62 android:layout_width="match_parent" 63 android:layout_height="match_parent" /> 64 <View 65 android:id="@+id/pano_speed_indication_border" 66 android:visibility="gone" 67 android:background="@drawable/ic_pan_border_fast" 68 android:layout_width="match_parent" 69 android:layout_height="match_parent" /> 70 </RelativeLayout> 71 72 <!-- The bottom bar with progress bar and direction indicators --> 73 <RelativeLayout 74 style="@style/PanoViewHorizontalBar"> 75 76 <com.android.camera.ui.RotateLayout 77 android:id="@+id/pano_pan_progress_bar_layout" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:layout_centerInParent="true"> 81 <com.android.camera.panorama.PanoProgressBar 82 android:id="@+id/pano_pan_progress_bar" 83 android:visibility="gone" 84 android:src="@drawable/ic_pan_progression" 85 android:layout_width="wrap_content" 86 android:layout_height="wrap_content" /> 87 </com.android.camera.ui.RotateLayout> 88 <ImageView 89 android:id="@+id/pano_pan_left_indicator" 90 android:src="@drawable/pano_direction_left_indicator" 91 android:visibility="gone" 92 android:layout_marginRight="5dp" 93 android:layout_toLeftOf="@id/pano_pan_progress_bar_layout" 94 android:layout_centerVertical="true" 95 android:layout_width="wrap_content" 96 android:layout_height="wrap_content" /> 97 98 <ImageView 99 android:id="@+id/pano_pan_right_indicator" 100 android:src="@drawable/pano_direction_right_indicator" 101 android:visibility="gone" 102 android:layout_marginLeft="5dp" 103 android:layout_toRightOf="@id/pano_pan_progress_bar_layout" 104 android:layout_centerVertical="true" 105 android:layout_width="wrap_content" 106 android:layout_height="wrap_content" /> 107 </RelativeLayout> 108 109 </LinearLayout> 110 111 <!-- The hint for "Too fast" text view--> 112 <com.android.camera.ui.RotateLayout 113 android:id="@+id/pano_capture_too_fast_textview_layout" 114 android:layout_width="wrap_content" 115 android:layout_height="wrap_content" 116 android:layout_centerInParent="true"> 117 <TextView android:id="@+id/pano_capture_too_fast_textview" 118 android:text="@string/pano_too_fast_prompt" 119 android:textAppearance="?android:textAppearanceMedium" 120 android:layout_width="wrap_content" 121 android:layout_height="@dimen/pano_capture_too_fast_text_height" 122 android:visibility="gone" /> 123 </com.android.camera.ui.RotateLayout> 124 </RelativeLayout> 125 126 <include layout="@layout/camera_control" /> 127 128</LinearLayout> 129