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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     17     android:layout_width="match_parent"
     18     android:layout_height="match_parent"
     19     android:orientation="horizontal">
     20 
     21     <!-- This nested ltr layout cannot be combined with the parent because
     22          in RTL, the Keypad and Timer value should swap. -->
     23     <LinearLayout
     24         android:id="@+id/timer_time_display"
     25         android:layoutDirection="ltr"
     26         android:orientation="horizontal"
     27         android:layout_weight="3"
     28         android:layout_width="0dp"
     29         android:layout_height="match_parent"
     30         android:gravity="center">
     31 
     32         <com.android.deskclock.timer.TimerView
     33             android:id="@+id/timer_time_text"
     34             android:layout_width="wrap_content"
     35             android:layout_height="wrap_content"
     36             android:gravity="center_horizontal|top">
     37 
     38             <include layout="@layout/timer_h_mm_ss_view"/>
     39 
     40             <ImageButton
     41                     android:id="@+id/delete"
     42                     android:layout_width="wrap_content"
     43                     android:layout_height="match_parent"
     44                     android:layout_gravity="center"
     45                     android:layout_marginStart="@dimen/timer_setup_delete_start_margin"
     46                     android:padding="@dimen/timer_setup_delete_padding"
     47                     android:src="@drawable/ic_backspace"
     48                     android:background="@drawable/item_background"
     49                     android:contentDescription="@string/timer_delete"/>
     50 
     51         </com.android.deskclock.timer.TimerView>
     52 
     53     </LinearLayout>
     54 
     55     <LinearLayout
     56             android:orientation="vertical"
     57             android:layout_weight="2"
     58             android:layout_width="0dp"
     59             android:layout_height="match_parent">
     60 
     61         <include
     62                 layout="@layout/three_keys_view"
     63                 android:id="@+id/first"/>
     64 
     65         <include
     66                 layout="@layout/three_keys_view"
     67                 android:id="@+id/second"/>
     68 
     69         <include
     70                 layout="@layout/three_keys_view"
     71                 android:id="@+id/third"/>
     72 
     73         <include
     74                 layout="@layout/three_keys_view"
     75                 android:id="@+id/fourth"/>
     76 
     77         <View
     78                 android:layout_width="match_parent"
     79                 android:layout_height="1dip"
     80                 android:background="#28ffffff"/>
     81 
     82         <LinearLayout
     83                 android:layout_width="match_parent"
     84                 android:layout_weight="0.5"
     85                 android:layout_height="0dip">
     86 
     87             <Button
     88                     android:id="@+id/timer_cancel"
     89                     android:text="@string/timer_cancel"
     90                     android:layout_width="0dp"
     91                     style="@style/bold_button"
     92                     android:textSize="@dimen/timer_setup_button_size"
     93                     android:layout_weight="1"
     94                     android:background="@drawable/item_background"
     95                     android:layout_height="match_parent"/>
     96 
     97             <View
     98                     android:id="@+id/timer_button_sep"
     99                     android:layout_height="match_parent"
    100                     android:layout_marginTop="8dip"
    101                     android:layout_marginBottom="8dip"
    102                     android:layout_width="1dip"
    103                     android:background="#28ffffff"/>
    104 
    105             <Button
    106                     android:id="@+id/timer_start"
    107                     android:text="@string/timer_start"
    108                     android:textSize="@dimen/timer_setup_button_size"
    109                     android:layout_width="0dp"
    110                     style="@style/bold_button"
    111                     android:layout_weight="1"
    112                     android:background="@drawable/item_background"
    113                     android:layout_height="match_parent"/>
    114 
    115         </LinearLayout>
    116 
    117     </LinearLayout>
    118 
    119 </LinearLayout>
    120