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="vertical">
     20     <LinearLayout
     21         android:layoutDirection="ltr"
     22         android:layout_width="match_parent"
     23         android:layout_height="wrap_content">
     24         <com.android.deskclock.timer.TimerView
     25             android:id="@+id/timer_time_text"
     26             android:layout_width="0dip"
     27             android:layout_weight="2"
     28             android:layout_height="wrap_content"
     29             android:paddingTop="@dimen/medium_font_padding"
     30             android:paddingBottom="@dimen/medium_font_padding"
     31             android:paddingLeft="@dimen/timer_padding_left"
     32             android:paddingStart="@dimen/timer_padding_left"
     33             android:layout_gravity="center"
     34             android:gravity="top"
     35             android:baselineAligned="false">
     36             <com.android.deskclock.ZeroTopPaddingTextView
     37                 android:id="@+id/hours_ones"
     38                 android:singleLine="true"
     39                 android:ellipsize="none"
     40                 style="@style/medium_bold"
     41                 android:layout_height="wrap_content"
     42                 android:layout_width="wrap_content"
     43                 android:textColor="@color/clock_white"/>
     44 
     45             <com.android.deskclock.ZeroTopPaddingTextView
     46                 android:id="@+id/hours_label"
     47                 android:singleLine="true"
     48                 android:ellipsize="none"
     49                 style="@style/label"
     50                 android:layout_gravity="top"
     51                 android:contentDescription="@string/hours_label_description"
     52                 android:text="@string/hours_label"
     53                 android:layout_height="wrap_content"
     54                 android:layout_width="wrap_content"
     55                 android:textColor="@color/clock_white"/>
     56 
     57             <com.android.deskclock.ZeroTopPaddingTextView
     58                 android:id="@+id/minutes_tens"
     59                 android:singleLine="true"
     60                 android:ellipsize="none"
     61                 style="@style/medium_bold"
     62                 android:layout_height="wrap_content"
     63                 android:layout_width="wrap_content"
     64                 android:textColor="@color/clock_white"/>
     65 
     66             <com.android.deskclock.ZeroTopPaddingTextView
     67                 android:id="@+id/minutes_ones"
     68                 android:singleLine="true"
     69                 android:ellipsize="none"
     70                 style="@style/medium_bold"
     71                 android:layout_height="wrap_content"
     72                 android:layout_width="wrap_content"
     73                 android:textColor="@color/clock_white"/>
     74             <com.android.deskclock.ZeroTopPaddingTextView
     75                 android:id="@+id/minutes_label"
     76                 android:singleLine="true"
     77                 android:ellipsize="none"
     78                 style="@style/label"
     79                 android:contentDescription="@string/minutes_label_description"
     80                 android:text="@string/minutes_label"
     81                 android:layout_height="wrap_content"
     82                 android:layout_width="wrap_content"
     83                 android:textColor="@color/clock_white"/>
     84 
     85             <com.android.deskclock.ZeroTopPaddingTextView
     86                 android:id="@+id/seconds"
     87                 android:singleLine="true"
     88                 android:ellipsize="none"
     89                 style="@style/medium_light"
     90                 android:layout_height="wrap_content"
     91                 android:layout_width="wrap_content"
     92                 android:textColor="@color/clock_white"/>
     93 
     94             <com.android.deskclock.ZeroTopPaddingTextView
     95                 android:id="@+id/seconds_label"
     96                 android:singleLine="true"
     97                 android:ellipsize="none"
     98                 style="@style/label"
     99                 android:layout_gravity="top"
    100                 android:contentDescription="@string/seconds_label_description"
    101                 android:text="@string/seconds_label"
    102                 android:layout_height="wrap_content"
    103                 android:layout_width="wrap_content"
    104                 android:textColor="@color/clock_white"/>
    105 
    106         </com.android.deskclock.timer.TimerView>
    107         <ImageButton
    108             android:id="@+id/delete"
    109             android:layout_width="0dip"
    110             android:layout_weight="1"
    111             android:gravity="center"
    112             android:layout_gravity="center"
    113             android:paddingBottom="@dimen/body_font_padding"
    114             android:src="@drawable/ic_backspace"
    115             android:background="@drawable/item_background"
    116             android:contentDescription="@string/timer_delete"
    117             android:layout_height="match_parent" />
    118     </LinearLayout>
    119     <View
    120         android:layout_width="match_parent"
    121         android:layout_height="1dip"
    122         android:layout_marginBottom="8dip"
    123         android:background="#28ffffff" />
    124     <include layout="@layout/three_keys_view"
    125         android:id="@+id/first" />
    126 
    127     <include layout="@layout/three_keys_view"
    128         android:id="@+id/second"/>
    129 
    130     <include layout="@layout/three_keys_view"
    131         android:id="@+id/third"/>
    132 
    133     <include layout="@layout/three_keys_view"
    134         android:id="@+id/fourth" />
    135 
    136     <View
    137         android:layout_width="match_parent"
    138         android:layout_height="1dip"
    139         android:layout_marginTop="16dip" />
    140 </LinearLayout>
    141