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="vertical"> 22 23 <RelativeLayout android:id="@+id/frame_layout" 24 android:layout_width="match_parent" 25 android:layout_height="0dp" 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="horizontal"> 32 33 <!-- The bottom bar with progress bar and direction indicators --> 34 <RelativeLayout 35 style="@style/PanoViewHorizontalBar"> 36 37 <com.android.camera.ui.RotateLayout 38 android:id="@+id/pano_pan_progress_bar_layout" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:layout_centerInParent="true"> 42 <com.android.camera.panorama.PanoProgressBar 43 android:id="@+id/pano_pan_progress_bar" 44 android:visibility="gone" 45 android:src="@drawable/ic_pan_progression" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" /> 48 </com.android.camera.ui.RotateLayout> 49 <ImageView 50 android:id="@+id/pano_pan_left_indicator" 51 android:src="@drawable/pano_direction_left_indicator" 52 android:rotation="90" 53 android:visibility="gone" 54 android:layout_marginBottom="5dp" 55 android:layout_above="@id/pano_pan_progress_bar_layout" 56 android:layout_centerHorizontal="true" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" /> 59 60 <ImageView 61 android:id="@+id/pano_pan_right_indicator" 62 android:src="@drawable/pano_direction_right_indicator" 63 android:rotation="90" 64 android:visibility="gone" 65 android:layout_marginTop="5dp" 66 android:layout_below="@id/pano_pan_progress_bar_layout" 67 android:layout_centerHorizontal="true" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" /> 70 </RelativeLayout> 71 72 <RelativeLayout 73 android:layout_gravity="center" 74 android:layout_weight="1.67" 75 android:layout_width="0dp" 76 android:layout_height="match_parent"> 77 <com.android.camera.panorama.MosaicRendererSurfaceView 78 android:id="@+id/pano_renderer" 79 android:layout_width="match_parent" 80 android:layout_height="match_parent" /> 81 <View 82 android:id="@+id/pano_speed_indication_border" 83 android:visibility="gone" 84 android:background="@drawable/ic_pan_border_fast" 85 android:layout_width="match_parent" 86 android:layout_height="match_parent" /> 87 </RelativeLayout> 88 89 <!-- The top bar with capture indication --> 90 <FrameLayout android:id="@+id/pano_capture_indicator_layout" 91 style="@style/PanoViewHorizontalBar" 92 android:padding="5dp"> 93 94 <com.android.camera.ui.RotateLayout 95 android:id="@+id/pano_capture_indicator" 96 android:visibility="gone" 97 android:layout_gravity="top|right" 98 android:layout_width="match_parent" 99 android:layout_height="match_parent"> 100 <TextView 101 android:text="@string/pano_capture_indication" 102 android:paddingTop="0dp" 103 android:drawablePadding="5sp" 104 android:drawableLeft="@drawable/ic_pan_recording_indicator" 105 android:layout_marginLeft="16dp" 106 android:layout_marginTop="16dp" 107 android:layout_width="wrap_content" 108 android:layout_height="wrap_content" /> 109 </com.android.camera.ui.RotateLayout> 110 </FrameLayout> 111 112 </LinearLayout> 113 114 <!-- The hint for "Too fast" text view--> 115 <com.android.camera.ui.RotateLayout 116 android:id="@+id/pano_capture_too_fast_textview_layout" 117 android:layout_width="wrap_content" 118 android:layout_height="wrap_content" 119 android:layout_centerInParent="true"> 120 <TextView android:id="@+id/pano_capture_too_fast_textview" 121 android:text="@string/pano_too_fast_prompt" 122 android:textAppearance="?android:textAppearanceMedium" 123 android:layout_width="@dimen/pano_capture_too_fast_text_height" 124 android:layout_height="wrap_content" 125 android:visibility="gone" /> 126 </com.android.camera.ui.RotateLayout> 127 </RelativeLayout> 128 129 <include layout="@layout/camera_control" /> 130 131</LinearLayout> 132