OSDN Git Service

Moving things around a little in the new DeskClock.
[android-x86/packages-apps-DeskClock.git] / res / layout / alarm_time.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2008 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:paddingLeft="5dip"
20     android:layout_width="fill_parent"
21     android:layout_height="wrap_content">
22
23     <!-- A layout that displays the time.  Shows time, am/pm (if 12-hour),
24          and an optional line below, used for day/days of week -->
25
26     <com.android.deskclock.DigitalClock android:id="@+id/digitalClock"
27         android:layout_width="wrap_content"
28         android:layout_height="fill_parent"
29         android:layout_weight="1"
30         android:gravity="center_vertical"
31         android:orientation="vertical"
32         android:paddingLeft="8dip"
33         android:paddingRight="8dip">
34
35         <LinearLayout
36             android:layout_width="fill_parent"
37             android:layout_height="wrap_content">
38
39             <TextView android:id="@+id/timeDisplay"
40                 android:layout_width="wrap_content"
41                 android:layout_height="wrap_content"
42                 android:textSize="30sp"
43                 android:textColor="@color/white"/>
44
45             <LinearLayout android:id="@+id/am_pm"
46                 android:layout_width="wrap_content"
47                 android:layout_height="fill_parent"
48                 android:layout_marginLeft="4dip"
49                 android:orientation="vertical">
50
51                 <TextView android:id="@+id/am"
52                     android:layout_width="wrap_content"
53                     android:layout_height="fill_parent"
54                     android:gravity="bottom"
55                     android:layout_weight=".5"
56                     android:includeFontPadding="false"
57                     android:textSize="12sp"/>
58
59                 <TextView android:id="@+id/pm"
60                     android:layout_width="wrap_content"
61                     android:layout_height="fill_parent"
62                     android:gravity="top"
63                     android:layout_weight=".5"
64                     android:includeFontPadding="false"
65                     android:textSize="12sp"/>
66
67             </LinearLayout>
68         </LinearLayout>
69
70         <TextView android:id="@+id/daysOfWeek"
71             android:layout_width="fill_parent"
72             android:layout_height="wrap_content"
73             android:textSize="10sp"
74             android:textColor="@color/ltgrey"/>
75
76         <TextView android:id="@+id/label"
77             android:layout_width="fill_parent"
78             android:layout_height="wrap_content"
79             android:textSize="12sp"
80             android:textColor="@color/ltgrey"
81             android:textStyle="bold|italic"
82             android:singleLine="true"/>
83
84     </com.android.deskclock.DigitalClock>
85
86     <CheckBox android:id="@+id/alarmButton"
87         android:focusable="false"
88         android:layout_width="60dip"
89         android:layout_height="76dip"
90         android:layout_gravity="center_vertical"/>
91
92 </LinearLayout>