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:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:layoutDirection="ltr" 24 android:gravity="center"> 25 <com.android.deskclock.timer.TimerView 26 android:id="@+id/timer_time_text" 27 android:layout_width="0dip" 28 android:layout_weight="2" 29 android:layout_height="wrap_content" 30 android:paddingTop="@dimen/medium_font_padding" 31 android:paddingBottom="@dimen/medium_font_padding" 32 android:paddingLeft="@dimen/timer_padding_left" 33 android:paddingStart="@dimen/timer_padding_left" 34 android:layout_gravity="center" 35 android:baselineAligned="false" 36 android:gravity="top"> 37 <com.android.deskclock.ZeroTopPaddingTextView 38 android:id="@+id/hours_tens" 39 android:singleLine="true" 40 android:ellipsize="none" 41 style="@style/medium_bold" 42 android:layout_height="wrap_content" 43 android:layout_width="wrap_content" 44 android:textColor="@color/clock_white"/> 45 <com.android.deskclock.ZeroTopPaddingTextView 46 android:id="@+id/hours_ones" 47 android:singleLine="true" 48 android:ellipsize="none" 49 style="@style/medium_bold" 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/hours_seperator" 56 android:singleLine="true" 57 android:ellipsize="none" 58 style="@style/medium_light" 59 android:text="@string/time_picker_time_seperator" 60 android:layout_height="wrap_content" 61 android:layout_width="wrap_content" 62 android:textColor="@color/clock_white"/> 63 64 <com.android.deskclock.ZeroTopPaddingTextView 65 android:id="@+id/minutes_tens" 66 android:singleLine="true" 67 android:ellipsize="none" 68 style="@style/medium_bold" 69 android:layout_height="wrap_content" 70 android:layout_width="wrap_content" 71 android:textColor="@color/clock_white"/> 72 <com.android.deskclock.ZeroTopPaddingTextView 73 android:id="@+id/minutes_ones" 74 android:singleLine="true" 75 android:ellipsize="none" 76 style="@style/medium_bold" 77 android:layout_height="wrap_content" 78 android:layout_width="wrap_content" 79 android:textColor="@color/clock_white"/> 80 81 <com.android.deskclock.ZeroTopPaddingTextView 82 android:id="@+id/ampm_label" 83 android:layout_height="wrap_content" 84 android:layout_width="wrap_content" 85 android:singleLine="true" 86 android:ellipsize="none" 87 style="@style/label" 88 android:gravity="top" 89 android:text="@string/time_picker_ampm_label" 90 android:textColor="@color/clock_white"/> 91 92 </com.android.deskclock.timer.TimerView> 93 <ImageButton 94 android:id="@+id/delete" 95 android:layout_width="0dip" 96 android:layout_weight="1" 97 android:gravity="center" 98 android:layout_gravity="center" 99 android:src="@drawable/ic_backspace" 100 android:background="@drawable/item_background" 101 android:contentDescription="@string/timer_delete" 102 android:layout_height="match_parent" /> 103 </LinearLayout> 104 <View 105 android:layout_width="match_parent" 106 android:layout_height="1dip" 107 android:background="#28ffffff" /> 108 <include layout="@layout/three_keys_view" 109 android:id="@+id/first" /> 110 111 <include layout="@layout/three_keys_view" 112 android:id="@+id/second"/> 113 114 <include layout="@layout/three_keys_view" 115 android:id="@+id/third"/> 116 117 <include layout="@layout/three_keys_view_ampm" 118 android:id="@+id/fourth" /> 119 </LinearLayout> 120