• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="fill_parent"
20    android:layout_height="fill_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="fill_parent"
37            android:layout_height="wrap_content" />
38        <ImageView
39            android:layout_width="fill_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        <com.android.deskclock.DigitalClock
48            style="@style/clock"
49            android:paddingTop="20dip"
50            android:paddingBottom="20dip"
51            android:gravity="center">
52
53            <TextView android:id="@+id/timeDisplay"
54                android:layout_width="wrap_content"
55                android:layout_height="wrap_content"
56                android:gravity="center"
57                android:textSize="64sp"
58                android:textColor="@color/white"/>
59
60            <TextView android:id="@+id/am_pm"
61                android:layout_width="wrap_content"
62                android:layout_height="fill_parent"
63                android:gravity="bottom"
64                android:textSize="28sp"
65                android:textColor="@color/white"/>
66
67        </com.android.deskclock.DigitalClock>
68
69        <LinearLayout
70            android:layout_width="wrap_content"
71            android:layout_height="wrap_content"
72            style="@android:style/ButtonBar">
73
74            <Button
75                android:id="@+id/snooze"
76                android:layout_width="wrap_content"
77                android:layout_height="wrap_content"
78                android:layout_weight="3"
79                android:text="@string/alarm_alert_snooze_text" />
80
81            <!-- blank stretchable view -->
82            <View
83                android:layout_width="2dip"
84                android:layout_height="2dip"
85                android:layout_gravity="fill_horizontal"
86                android:layout_weight="1"/>
87
88            <Button
89                android:id="@+id/dismiss"
90                android:layout_width="wrap_content"
91                android:layout_height="wrap_content"
92                android:layout_weight="3"
93                android:text="@string/alarm_alert_dismiss_text" />
94
95        </LinearLayout>
96
97    </LinearLayout>
98
99</LinearLayout>
100