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 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     17     android:layout_width="match_parent"
     18     android:layout_height="match_parent">
     19 
     20     <LinearLayout
     21         android:layout_width="match_parent"
     22         android:layout_height="match_parent"
     23         android:orientation="horizontal">
     24 
     25         <!-- This nested ltr layout cannot be combined with the parent because
     26              in RTL, the Keypad and Timer value should swap. -->
     27         <LinearLayout
     28             android:id="@+id/timer_time_display"
     29             android:layout_width="0dip"
     30             android:layout_height="match_parent"
     31             android:layout_weight="3"
     32             android:layout_marginBottom="@dimen/footer_button_size"
     33             android:layoutDirection="ltr"
     34             android:gravity="center"
     35             android:orientation="vertical"
     36             >
     37 
     38             <com.android.deskclock.timer.TimerView
     39                 android:id="@+id/timer_time_text"
     40                 android:layout_width="wrap_content"
     41                 android:layout_height="wrap_content"
     42                 android:gravity="center_vertical">
     43 
     44                 <include layout="@layout/timer_h_mm_ss_view" />
     45 
     46                 <ImageButton
     47                     android:id="@+id/delete"
     48                     android:layout_width="wrap_content"
     49                     android:layout_height="match_parent"
     50                     android:layout_gravity="center"
     51                     android:layout_marginStart="@dimen/timer_setup_delete_start_margin"
     52                     android:padding="@dimen/timer_setup_delete_padding"
     53                     android:contentDescription="@string/timer_delete"
     54                     android:src="@drawable/ic_backspace"
     55                     android:background="?android:attr/selectableItemBackgroundBorderless" />
     56 
     57             </com.android.deskclock.timer.TimerView>
     58 
     59             <View
     60                 android:id="@+id/divider"
     61                 android:layout_width="match_parent"
     62                 android:layout_height="1dip"
     63                 android:layout_marginBottom="8dip"
     64                 android:background="@color/dialog_gray" />
     65 
     66         </LinearLayout>
     67 
     68         <LinearLayout
     69             android:layout_width="0dip"
     70             android:layout_height="match_parent"
     71             android:layout_weight="2"
     72             android:orientation="vertical" >
     73 
     74             <include
     75                 android:id="@+id/first"
     76                 layout="@layout/three_keys_view" />
     77             <include
     78                 android:id="@+id/second"
     79                 layout="@layout/three_keys_view" />
     80             <include
     81                 android:id="@+id/third"
     82                 layout="@layout/three_keys_view" />
     83             <include
     84                 android:id="@+id/fourth"
     85                 layout="@layout/three_keys_view" />
     86 
     87         </LinearLayout>
     88 
     89     </LinearLayout>
     90 
     91     <include layout="@layout/timer_cancel_button" />
     92 
     93 </FrameLayout>