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                 android:padding="5dp">
     29 
     30             <com.android.camera.ui.RotateLayout
     31                     android:id="@+id/pano_capture_indicator"
     32                     android:visibility="gone"
     33                     android:layout_gravity="top|left"
     34                     android:layout_width="match_parent"
     35                     android:layout_height="match_parent">
     36                 <TextView
     37                         android:text="@string/pano_capture_indication"
     38                         android:paddingLeft="0dp"
     39                         android:drawablePadding="5sp"
     40                         android:drawableLeft="@drawable/ic_pan_recording_indicator"
     41                         android:layout_marginLeft="16dp"
     42                         android:layout_marginTop="16dp"
     43                         android:layout_width="wrap_content"
     44                         android:layout_height="wrap_content" />
     45             </com.android.camera.ui.RotateLayout>
     46         </FrameLayout>
     47 
     48         <View android:id="@+id/pano_preview_area"
     49                 android:visibility="invisible"
     50                 android:background="@drawable/ic_pan_border_fast"
     51                 android:layout_gravity="center"
     52                 android:layout_weight="1.67"
     53                 android:layout_width="match_parent"
     54                 android:layout_height="0dp" />
     55 
     56         <!-- The bottom bar with progress bar and direction indicators -->
     57         <RelativeLayout style="@style/PanoViewHorizontalBar">
     58 
     59             <com.android.camera.ui.RotateLayout
     60                     android:id="@+id/pano_pan_progress_bar_layout"
     61                     android:layout_width="wrap_content"
     62                     android:layout_height="wrap_content"
     63                     android:layout_centerInParent="true">
     64                 <com.android.camera.PanoProgressBar
     65                         android:id="@+id/pano_pan_progress_bar"
     66                         android:visibility="gone"
     67                         android:src="@drawable/ic_pan_progression"
     68                         android:layout_width="wrap_content"
     69                         android:layout_height="wrap_content" />
     70             </com.android.camera.ui.RotateLayout>
     71             <ImageView
     72                     android:id="@+id/pano_pan_left_indicator"
     73                     android:src="@drawable/pano_direction_left_indicator"
     74                     android:visibility="gone"
     75                     android:layout_marginRight="5dp"
     76                     android:layout_toLeftOf="@id/pano_pan_progress_bar_layout"
     77                     android:layout_centerVertical="true"
     78                     android:layout_width="wrap_content"
     79                     android:layout_height="wrap_content" />
     80 
     81             <ImageView
     82                     android:id="@+id/pano_pan_right_indicator"
     83                     android:src="@drawable/pano_direction_right_indicator"
     84                     android:visibility="gone"
     85                     android:layout_marginLeft="5dp"
     86                     android:layout_toRightOf="@id/pano_pan_progress_bar_layout"
     87                     android:layout_centerVertical="true"
     88                     android:layout_width="wrap_content"
     89                     android:layout_height="wrap_content" />
     90         </RelativeLayout>
     91 
     92     </LinearLayout>
     93 
     94     <!-- The hint for "Too fast" text view -->
     95     <com.android.camera.ui.RotateLayout
     96             android:id="@+id/pano_capture_too_fast_textview_layout"
     97             android:layout_width="wrap_content"
     98             android:layout_height="wrap_content"
     99             android:layout_centerInParent="true">
    100         <TextView android:id="@+id/pano_capture_too_fast_textview"
    101                 android:text="@string/pano_too_fast_prompt"
    102                 android:textAppearance="?android:textAppearanceMedium"
    103                 android:layout_width="wrap_content"
    104                 android:layout_height="wrap_content"
    105                 android:visibility="gone" />
    106     </com.android.camera.ui.RotateLayout>
    107 </RelativeLayout>
    108