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