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