Home | History | Annotate | Download | only in layout-land
      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 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     17         android:id="@+id/frame_layout"
     18         android:layout_width="0dp"
     19         android:layout_height="match_parent"
     20         android:layout_weight="1">
     21 
     22     <LinearLayout android:layout_width="match_parent"
     23             android:layout_height="match_parent"
     24             android:orientation="vertical">
     25 
     26         <!-- The top bar with capture indication -->
     27         <FrameLayout style="@style/PanoViewHorizontalBar">
     28             <TextView android:id="@+id/pano_capture_indicator"
     29                     android:text="@string/pano_capture_indication"
     30                     android:textAppearance="?android:textAppearanceMedium"
     31                     android:layout_gravity="center"
     32                     android:visibility="gone"
     33                     android:layout_width="wrap_content"
     34                     android:layout_height="wrap_content" />
     35         </FrameLayout>
     36 
     37         <com.android.camera.ui.LayoutNotifyView
     38                 android:id="@+id/pano_preview_area"
     39                 android:visibility="invisible"
     40                 android:background="@drawable/ic_pan_border_fast"
     41                 android:layout_gravity="center"
     42                 android:layout_weight="5"
     43                 android:layout_width="match_parent"
     44                 android:layout_height="0dp" />
     45 
     46         <!-- The bottom bar with progress bar and direction indicators -->
     47         <RelativeLayout style="@style/PanoViewHorizontalBar">
     48 
     49             <com.android.camera.ui.RotateLayout
     50                     android:id="@+id/pano_pan_progress_bar_layout"
     51                     android:layout_width="wrap_content"
     52                     android:layout_height="wrap_content"
     53                     android:layout_centerInParent="true">
     54                 <com.android.camera.PanoProgressBar
     55                         android:id="@+id/pano_pan_progress_bar"
     56                         android:visibility="gone"
     57                         android:src="@drawable/ic_pan_progression"
     58                         android:layout_width="wrap_content"
     59                         android:layout_height="wrap_content" />
     60             </com.android.camera.ui.RotateLayout>
     61             <ImageView
     62                     android:id="@+id/pano_pan_left_indicator"
     63                     android:src="@drawable/pano_direction_left_indicator"
     64                     android:visibility="gone"
     65                     android:layout_marginRight="5dp"
     66                     android:layout_toLeftOf="@id/pano_pan_progress_bar_layout"
     67                     android:layout_centerVertical="true"
     68                     android:layout_width="wrap_content"
     69                     android:layout_height="wrap_content" />
     70 
     71             <ImageView
     72                     android:id="@+id/pano_pan_right_indicator"
     73                     android:src="@drawable/pano_direction_right_indicator"
     74                     android:visibility="gone"
     75                     android:layout_marginLeft="5dp"
     76                     android:layout_toRightOf="@id/pano_pan_progress_bar_layout"
     77                     android:layout_centerVertical="true"
     78                     android:layout_width="wrap_content"
     79                     android:layout_height="wrap_content" />
     80         </RelativeLayout>
     81 
     82     </LinearLayout>
     83 
     84     <!-- The hint for "Too fast" text view -->
     85     <com.android.camera.ui.RotateLayout
     86             android:id="@+id/pano_capture_too_fast_textview_layout"
     87             android:layout_width="wrap_content"
     88             android:layout_height="wrap_content"
     89             android:layout_centerInParent="true">
     90         <TextView android:id="@+id/pano_capture_too_fast_textview"
     91                 android:text="@string/pano_too_fast_prompt"
     92                 android:textAppearance="?android:textAppearanceMedium"
     93                 android:layout_width="wrap_content"
     94                 android:layout_height="wrap_content"
     95                 android:visibility="gone" />
     96     </com.android.camera.ui.RotateLayout>
     97 </RelativeLayout>
     98