Home | History | Annotate | Download | only in layout-port
      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="match_parent"
     19         android:layout_height="0dp"
     20         android:layout_weight="1">
     21 
     22     <LinearLayout android:layout_width="match_parent"
     23             android:layout_height="match_parent"
     24             android:baselineAligned="false"
     25             android:orientation="vertical">
     26         <FrameLayout style="@style/PanoViewHorizontalBar">
     27             <TextView android:id="@+id/pano_capture_indicator"
     28                     android:text="@string/pano_capture_indication"
     29                     android:textAppearance="?android:textAppearanceMedium"
     30                     android:visibility="gone"
     31                     android:layout_gravity="center"
     32                     android:layout_width="wrap_content"
     33                     android:layout_height="wrap_content" />
     34         </FrameLayout>
     35 
     36         <com.android.camera.ui.LayoutNotifyView
     37                 android:id="@+id/pano_preview_area"
     38                 android:visibility="invisible"
     39                 android:background="@drawable/ic_pan_border_fast"
     40                 android:layout_gravity="center"
     41                 android:layout_weight="2"
     42                 android:layout_width="match_parent"
     43                 android:layout_height="0dp" />
     44 
     45         <View style="@style/PanoViewHorizontalBar"/>
     46     </LinearLayout>
     47 
     48     <!-- The hint for "Too fast" text view -->
     49     <com.android.camera.ui.RotateLayout
     50             android:id="@+id/pano_capture_too_fast_textview_layout"
     51             android:layout_width="wrap_content"
     52             android:layout_height="wrap_content"
     53             android:layout_centerInParent="true">
     54         <TextView android:id="@+id/pano_capture_too_fast_textview"
     55                 android:text="@string/pano_too_fast_prompt"
     56                 android:textAppearance="?android:textAppearanceMedium"
     57                 android:layout_width="wrap_content"
     58                 android:layout_height="wrap_content"
     59                 android:visibility="gone" />
     60     </com.android.camera.ui.RotateLayout>
     61 
     62     <RelativeLayout
     63             android:layout_width="match_parent"
     64             android:layout_height="wrap_content"
     65             android:layout_above="@+id/placeholder">
     66         <com.android.camera.ui.RotateLayout
     67                 android:id="@+id/pano_pan_progress_bar_layout"
     68                 android:layout_width="wrap_content"
     69                 android:layout_height="wrap_content"
     70                 android:layout_centerInParent="true">
     71             <com.android.camera.PanoProgressBar
     72                     android:id="@+id/pano_pan_progress_bar"
     73                     android:visibility="gone"
     74                     android:src="@drawable/ic_pan_progression"
     75                     android:layout_width="wrap_content"
     76                     android:layout_height="wrap_content" />
     77         </com.android.camera.ui.RotateLayout>
     78 
     79         <ImageView
     80                 android:id="@+id/pano_pan_left_indicator"
     81                 android:src="@drawable/pano_direction_left_indicator"
     82                 android:visibility="gone"
     83                 android:layout_marginRight="5dp"
     84                 android:layout_toLeftOf="@id/pano_pan_progress_bar_layout"
     85                 android:layout_centerVertical="true"
     86                 android:layout_width="wrap_content"
     87                 android:layout_height="wrap_content" />
     88 
     89         <ImageView
     90                 android:id="@+id/pano_pan_right_indicator"
     91                 android:src="@drawable/pano_direction_right_indicator"
     92                 android:visibility="gone"
     93                 android:layout_marginLeft="5dp"
     94                 android:layout_toRightOf="@id/pano_pan_progress_bar_layout"
     95                 android:layout_centerVertical="true"
     96                 android:layout_width="wrap_content"
     97                 android:layout_height="wrap_content" />
     98     </RelativeLayout>
     99 
    100     <ImageView
    101             android:id="@id/placeholder"
    102             android:visibility="invisible"
    103             android:layout_centerHorizontal="true"
    104             android:layout_alignParentBottom="true"
    105             android:layout_marginBottom="@dimen/shutter_offset"
    106             android:layout_width="wrap_content"
    107             android:layout_height="wrap_content"
    108             android:src="@drawable/btn_shutter_default" />
    109 
    110 </RelativeLayout>
    111