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 <LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:gravity="center"> 22 23 <LinearLayout 24 android:layout_width="wrap_content" 25 android:layout_height="wrap_content" 26 android:layout_gravity="center" 27 android:gravity="center_horizontal" 28 android:background="@drawable/dialog" 29 android:orientation="vertical"> 30 31 <TextView android:id="@+id/alertTitle" 32 style="?android:attr/textAppearanceLarge" 33 android:padding="5dip" 34 android:singleLine="true" 35 android:ellipsize="end" 36 android:gravity="center" 37 android:layout_width="match_parent" 38 android:layout_height="wrap_content" /> 39 <ImageView 40 android:layout_width="match_parent" 41 android:layout_height="1dip" 42 android:scaleType="fitXY" 43 android:gravity="fill_horizontal" 44 android:src="@drawable/dialog_divider_horizontal_light" 45 android:layout_marginLeft="10dip" 46 android:layout_marginRight="10dip"/> 47 48 <com.android.deskclock.DigitalClock 49 style="@style/clock" 50 android:paddingTop="30dip" 51 android:paddingBottom="30dip" 52 android:baselineAligned="true" 53 android:gravity="center_horizontal"> 54 55 <TextView android:id="@+id/timeDisplay" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:textSize="64sp" 59 android:textColor="?android:attr/textColorPrimary"/> 60 61 <TextView android:id="@+id/am_pm" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:textStyle="bold" 65 android:textAppearance="?android:attr/textAppearanceMedium" 66 android:textColor="?android:attr/textColorPrimary"/> 67 68 </com.android.deskclock.DigitalClock> 69 70 <LinearLayout 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 style="@android:style/ButtonBar"> 74 75 <Button 76 android:id="@+id/snooze" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:layout_weight="3" 80 android:text="@string/alarm_alert_snooze_text" /> 81 82 <!-- blank stretchable view --> 83 <View 84 android:layout_width="2dip" 85 android:layout_height="2dip" 86 android:layout_gravity="fill_horizontal" 87 android:layout_weight="1"/> 88 89 <Button 90 android:id="@+id/dismiss" 91 android:layout_width="wrap_content" 92 android:layout_height="wrap_content" 93 android:layout_weight="3" 94 android:text="@string/alarm_alert_dismiss_text" /> 95 96 </LinearLayout> 97 98 </LinearLayout> 99 100 </LinearLayout> 101