1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2007 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 17 <RelativeLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 > 22 23 <LinearLayout android:id="@+id/topPanel" 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:layout_alignParentTop="true" 27 android:orientation="vertical"> 28 29 <LinearLayout android:id="@+id/title_template" 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:orientation="horizontal" 33 android:gravity="center_vertical|left" 34 android:minHeight="@dimen/alert_dialog_title_height" 35 android:layout_marginLeft="16dip" 36 android:layout_marginRight="16dip"> 37 38 <TextView android:id="@+id/alertTitle" 39 style="?android:attr/windowTitleStyle" 40 android:singleLine="true" 41 android:ellipsize="end" 42 android:layout_width="match_parent" 43 android:layout_height="wrap_content" /> 44 45 </LinearLayout> 46 47 <View android:id="@+id/titleDivider" 48 android:layout_width="match_parent" 49 android:layout_height="2dip" 50 android:background="@android:color/holo_blue_light" /> 51 52 </LinearLayout> 53 54 <com.android.deskclock.DigitalClock 55 android:id="@+id/digitalClock" 56 android:layout_width="match_parent" 57 android:layout_height="wrap_content" 58 android:gravity="center" 59 android:paddingTop="24dip" 60 android:paddingLeft="24dip" 61 android:paddingRight="20dip" 62 android:paddingBottom="80dp" 63 android:baselineAligned="true" 64 android:layout_below="@id/topPanel" 65 android:layout_centerHorizontal="true" 66 > 67 68 <com.android.deskclock.AndroidClockTextView 69 android:id="@+id/timeDisplay" 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:textSize="80dp" 73 android:layout_alignParentRight="true" 74 android:textColor="?android:attr/textColorPrimary" 75 android:layout_marginRight="44dip"/> 76 77 <com.android.deskclock.AndroidClockTextView 78 useClockTypeface="false" 79 android:id="@+id/am_pm" 80 android:layout_width="40dip" 81 android:layout_height="wrap_content" 82 android:textStyle="bold" 83 android:textSize="20dp" 84 android:layout_alignParentRight="true" 85 android:layout_alignBaseline="@id/timeDisplay" 86 android:textColor="?android:attr/textColorPrimary"/> 87 88 </com.android.deskclock.DigitalClock> 89 90 <Button 91 android:id="@+id/snooze" 92 style="?android:attr/buttonBarButtonStyle" 93 android:layout_width="match_parent" 94 android:layout_height="match_parent" 95 android:layout_below="@id/topPanel" 96 android:layout_alignBottom="@id/digitalClock" 97 android:paddingBottom="16dp" 98 android:gravity="bottom|center_horizontal" 99 android:text="@string/alarm_alert_snooze_text" /> 100 101 <View 102 android:id="@+id/divider" 103 android:layout_width="match_parent" 104 android:layout_height="1dip" 105 android:layout_marginLeft="16dip" 106 android:layout_marginRight="16dip" 107 android:layout_below="@id/snooze" 108 android:background="?android:attr/dividerHorizontal" /> 109 110 <Button 111 android:id="@+id/dismiss" 112 style="?android:attr/buttonBarButtonStyle" 113 android:layout_width="match_parent" 114 android:layout_height="48dp" 115 android:gravity="center" 116 android:layout_below="@id/divider" 117 android:text="@string/alarm_alert_dismiss_text" /> 118 119 </RelativeLayout> 120