Home | History | Annotate | Download | only in layout
      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 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     17         android:id="@+id/rotate_dialog_root_layout"
     18         android:clickable="true"
     19         android:gravity="center"
     20         android:visibility="gone"
     21         android:background="#55000000"
     22         android:layout_width="match_parent"
     23         android:layout_height="match_parent">
     24 
     25     <com.android.camera.ui.RotateLayout
     26             android:id="@+id/rotate_dialog_layout"
     27             android:gravity="center"
     28             android:layout_gravity="center"
     29             android:layout_width="wrap_content"
     30             android:layout_height="wrap_content" >
     31 
     32         <LinearLayout
     33                 android:orientation="vertical"
     34                 android:layout_gravity="center"
     35                 android:background="@color/popup_background"
     36                 android:layout_width="wrap_content"
     37                 android:layout_height="wrap_content">
     38 
     39             <LinearLayout android:id="@+id/rotate_dialog_title_layout"
     40                     android:orientation="vertical"
     41                     android:layout_width="match_parent"
     42                     android:layout_height="wrap_content">
     43 
     44                 <TextView android:id="@+id/rotate_dialog_title"
     45                         style="@style/TextAppearance.DialogWindowTitle"
     46                         android:gravity="center_vertical"
     47                         android:layout_marginLeft="16dip"
     48                         android:layout_marginRight="16dip"
     49                         android:layout_width="match_parent"
     50                         android:layout_height="wrap_content"
     51                         android:minHeight="64dp"/>
     52                 <View style="@style/PopupTitleSeparator" />
     53             </LinearLayout>
     54 
     55             <LinearLayout
     56                     android:orientation="horizontal"
     57                     android:background="@color/popup_background"
     58                     android:padding="9dp"
     59                     android:layout_width="wrap_content"
     60                     android:layout_height="wrap_content">
     61 
     62                 <ProgressBar
     63                         android:id="@+id/rotate_dialog_spinner"
     64                         android:layout_gravity="center_vertical"
     65                         android:layout_width="wrap_content"
     66                         android:layout_height="wrap_content" />
     67                 <TextView
     68                         style="@style/TextAppearance.Medium"
     69                         android:id="@+id/rotate_dialog_text"
     70                         android:layout_gravity="center_vertical"
     71                         android:layout_width="wrap_content"
     72                         android:layout_height="wrap_content" />
     73             </LinearLayout>
     74 
     75             <ImageView android:background="@drawable/list_divider"
     76                     android:layout_width="match_parent"
     77                     android:layout_height="wrap_content" />
     78 
     79             <LinearLayout android:id="@+id/rotate_dialog_button_layout"
     80                     android:layout_width="match_parent"
     81                     android:layout_height="wrap_content"
     82                     android:gravity="center"
     83                     android:minHeight="48dp"
     84                     android:orientation="horizontal">
     85 
     86                 <Button android:id="@+id/rotate_dialog_button2"
     87                         style="@style/Widget.Button.Borderless"
     88                         android:gravity="center"
     89                         android:maxLines="2"
     90                         android:minHeight="48dp"
     91                         android:textSize="14sp"
     92                         android:layout_weight="1"
     93                         android:layout_width="0dp"
     94                         android:layout_height="wrap_content" />
     95                 <ImageView android:background="@drawable/list_divider"
     96                         android:layout_width="wrap_content"
     97                         android:layout_height="match_parent" />
     98                 <Button android:id="@+id/rotate_dialog_button1"
     99                         style="@style/Widget.Button.Borderless"
    100                         android:gravity="center"
    101                         android:maxLines="2"
    102                         android:minHeight="48dp"
    103                         android:textSize="14sp"
    104                         android:layout_weight="1"
    105                         android:layout_width="0dp"
    106                         android:layout_height="wrap_content" />
    107             </LinearLayout>
    108         </LinearLayout>
    109     </com.android.camera.ui.RotateLayout>
    110 </FrameLayout>
    111