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_weight="1.67" 59 android:layout_width="match_parent" 60 android:layout_height="0dp"> 61 <com.android.camera.panorama.MosaicRendererSurfaceView 62 android:id="@+id/pano_renderer" 63 android:layout_width="match_parent" 64 android:layout_height="match_parent" /> 65 <View 66 android:id="@+id/pano_speed_indication_border" 67 android:visibility="gone" 68 android:background="@drawable/ic_pan_border_fast" 69 android:layout_width="match_parent" 70 android:layout_height="match_parent" /> 71 </RelativeLayout> 72 73 <!-- The bottom bar with progress bar and direction indicators --> 74 <RelativeLayout 75 style="@style/PanoViewHorizontalBar"> 76 77 <com.android.camera.ui.RotateLayout 78 android:id="@+id/pano_pan_progress_bar_layout" 79 android:layout_width="wrap_content" 80 android:layout_height="wrap_content" 81 android:layout_centerInParent="true"> 82 <com.android.camera.panorama.PanoProgressBar 83 android:id="@+id/pano_pan_progress_bar" 84 android:visibility="gone" 85 android:src="@drawable/ic_pan_progression" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" /> 88 </com.android.camera.ui.RotateLayout> 89 <ImageView 90 android:id="@+id/pano_pan_left_indicator" 91 android:src="@drawable/pano_direction_left_indicator" 92 android:visibility="gone" 93 android:layout_marginRight="5dp" 94 android:layout_toLeftOf="@id/pano_pan_progress_bar_layout" 95 android:layout_centerVertical="true" 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" /> 98 99 <ImageView 100 android:id="@+id/pano_pan_right_indicator" 101 android:src="@drawable/pano_direction_right_indicator" 102 android:visibility="gone" 103 android:layout_marginLeft="5dp" 104 android:layout_toRightOf="@id/pano_pan_progress_bar_layout" 105 android:layout_centerVertical="true" 106 android:layout_width="wrap_content" 107 android:layout_height="wrap_content" /> 108 </RelativeLayout> 109 110 </LinearLayout> 111 112 <!-- The hint for "Too fast" text view--> 113 <com.android.camera.ui.RotateLayout 114 android:id="@+id/pano_capture_too_fast_textview_layout" 115 android:layout_width="wrap_content" 116 android:layout_height="wrap_content" 117 android:layout_centerInParent="true"> 118 <TextView android:id="@+id/pano_capture_too_fast_textview" 119 android:text="@string/pano_too_fast_prompt" 120 android:textAppearance="?android:textAppearanceMedium" 121 android:layout_width="wrap_content" 122 android:layout_height="@dimen/pano_capture_too_fast_text_height" 123 android:visibility="gone" /> 124 </com.android.camera.ui.RotateLayout> 125 </RelativeLayout> 126 127 <include layout="@layout/camera_control" /> 128 129</LinearLayout> 130