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