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