OSDN Git Service

New UI for the list of alarms.
[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:paddingTop="4dip"
20     android:paddingBottom="4dip"
21     android:layout_width="fill_parent"
22     android:layout_height="wrap_content"
23     android:orientation="horizontal">
24
25     <LinearLayout android:id="@+id/indicator"
26         android:layout_width="wrap_content"
27         android:layout_height="wrap_content"
28         android:paddingLeft="14dip"
29         android:paddingRight="14dip"
30         android:paddingTop="8dip"
31         android:paddingBottom="8dip"
32         android:orientation="vertical">
33         <CheckBox android:id="@+id/clock_onoff"
34             android:focusable="false"
35             android:background="@drawable/indicator_clock_onoff"
36             android:layout_height="wrap_content"
37             android:layout_width="wrap_content"
38             android:layout_gravity="center"
39             android:button="@null"/>
40         <ImageView android:id="@+id/bar_onoff"
41             android:layout_width="wrap_content"
42             android:layout_height="wrap_content"
43             android:layout_gravity="center"
44             android:paddingTop="4dip"
45             android:src="@drawable/ic_indicator_off" />
46     </LinearLayout>
47
48     <ImageView
49         android:src="@*android:drawable/divider_vertical_dark"
50         android:layout_width="wrap_content"
51         android:layout_height="fill_parent"
52         android:scaleType="fitXY"
53         android:gravity="fill_vertical" />
54
55     <!-- A layout that displays the time.  Shows time, am/pm (if 12-hour),
56          and an optional line below, used for day/days of week -->
57     <com.android.deskclock.DigitalClock android:id="@+id/digitalClock"
58         android:layout_width="wrap_content"
59         android:layout_height="fill_parent"
60         android:gravity="center_vertical"
61         android:layout_weight="1"
62         android:orientation="vertical"
63         android:paddingLeft="8dip"
64         android:paddingRight="8dip">
65
66         <LinearLayout
67             android:layout_width="fill_parent"
68             android:layout_height="wrap_content"
69             android:baselineAligned="true">
70
71             <TextView android:id="@+id/timeDisplay"
72                 android:includeFontPadding="false"
73                 android:layout_width="wrap_content"
74                 android:layout_height="wrap_content"
75                 android:paddingRight="6dip"
76                 android:textSize="36sp"
77                 android:textColor="@color/white"/>
78
79             <TextView android:id="@+id/am_pm"
80                 android:layout_width="wrap_content"
81                 android:layout_height="wrap_content"
82                 android:textSize="16sp"
83                 android:textStyle="bold"
84                 android:textColor="@color/white"/>
85
86             <TextView android:id="@+id/label"
87                 android:layout_width="wrap_content"
88                 android:layout_height="wrap_content"
89                 android:layout_weight="1"
90                 android:textSize="16sp"
91                 android:textColor="@color/grey"
92                 android:textStyle="bold"
93                 android:gravity="right"
94                 android:paddingRight="8dip"
95                 android:singleLine="true"/>
96
97         </LinearLayout>
98
99         <TextView android:id="@+id/daysOfWeek"
100             android:includeFontPadding="false"
101             android:layout_width="fill_parent"
102             android:layout_height="wrap_content"
103             android:textSize="10sp"
104             android:textColor="@color/grey"/>
105
106     </com.android.deskclock.DigitalClock>
107
108 </LinearLayout>