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:singleLine="true" 34 android:ellipsize="end" 35 android:gravity="center" 36 android:layout_width="match_parent" 37 android:layout_height="wrap_content" /> 38 <ImageView 39 android:layout_width="match_parent" 40 android:layout_height="1dip" 41 android:scaleType="fitXY" 42 android:gravity="fill_horizontal" 43 android:src="@*android:drawable/dialog_divider_horizontal_light" 44 android:layout_marginLeft="10dip" 45 android:layout_marginRight="10dip"/> 46 47 <LinearLayout 48 android:id="@+id/clockView" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_weight="1" 52 android:layout_gravity="fill_vertical|center"/> 53 54 <LinearLayout 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 style="@android:style/ButtonBar"> 58 59 <Button 60 android:id="@+id/snooze" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:layout_weight="3" 64 android:text="@string/alarm_alert_snooze_text" /> 65 66 <!-- blank stretchable view --> 67 <View 68 android:layout_width="2dip" 69 android:layout_height="2dip" 70 android:layout_gravity="fill_horizontal" 71 android:layout_weight="1"/> 72 73 <Button 74 android:id="@+id/dismiss" 75 android:layout_width="wrap_content" 76 android:layout_height="wrap_content" 77 android:layout_weight="3" 78 android:text="@string/alarm_alert_dismiss_text" /> 79 80 </LinearLayout> 81 82 </LinearLayout> 83 84 </LinearLayout> 85