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