• 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<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    <com.android.deskclock.DigitalClock
24        android:id="@+id/digitalClock"
25        android:layout_width="match_parent"
26        android:layout_height="wrap_content"
27        android:gravity="center"
28        android:paddingTop="24dip"
29        android:paddingLeft="24dip"
30        android:paddingRight="24dip"
31        android:paddingBottom="80dp"
32        android:baselineAligned="true"
33        android:layout_alignParentTop="true"
34        android:layout_centerHorizontal="true"
35        >
36
37        <com.android.deskclock.AndroidClockTextView
38            android:id="@+id/timeDisplay"
39            android:layout_width="wrap_content"
40            android:layout_height="wrap_content"
41            android:textSize="80dp"
42            android:layout_alignParentRight="true"
43            android:textColor="?android:attr/textColorPrimary"
44            android:layout_marginRight="40dip"/>
45
46        <com.android.deskclock.AndroidClockTextView
47            useClockTypeface="false"
48            android:id="@+id/am_pm"
49            android:layout_width="36dip"
50            android:layout_height="wrap_content"
51            android:textStyle="bold"
52            android:textSize="20dp"
53            android:layout_alignParentRight="true"
54            android:layout_alignBaseline="@id/timeDisplay"
55            android:textColor="?android:attr/textColorPrimary"/>
56
57    </com.android.deskclock.DigitalClock>
58
59    <Button
60        android:id="@+id/snooze"
61        style="?android:attr/buttonBarButtonStyle"
62        android:layout_width="match_parent"
63        android:layout_height="match_parent"
64        android:layout_alignParentTop="true"
65        android:layout_alignBottom="@id/digitalClock"
66        android:paddingBottom="16dp"
67        android:gravity="bottom|center_horizontal"
68        android:text="@string/alarm_alert_snooze_text" />
69
70    <View
71        android:id="@+id/divider"
72        android:layout_width="match_parent"
73        android:layout_height="1dip"
74        android:layout_marginLeft="16dip"
75        android:layout_marginRight="16dip"
76        android:layout_below="@id/snooze"
77        android:background="?android:attr/dividerHorizontal" />
78
79    <Button
80        android:id="@+id/dismiss"
81        style="?android:attr/buttonBarButtonStyle"
82        android:layout_width="match_parent"
83        android:layout_height="48dp"
84        android:gravity="center"
85        android:layout_below="@id/divider"
86        android:text="@string/alarm_alert_dismiss_text" />
87
88</RelativeLayout>
89