1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2009 The Android Open Source Project
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
17 <!-- This is the alarm clock in desk dock mode. It shows the time in large
18 type, plus information about active alarms and charge status. It can
19 also show some additional status information (e.g. weather data).
20 Buttons are provided to access alarms, music, and other useful functions.
22 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
23 android:layout_width="fill_parent"
24 android:layout_height="fill_parent"
27 android:id="@+id/desk_clock"
28 android:layout_width="fill_parent"
29 android:layout_height="fill_parent"
30 android:orientation="vertical"
31 android:gravity="bottom"
32 android:background="#30000000"
36 android:orientation="vertical"
37 android:layout_gravity="left"
38 android:layout_width="fill_parent"
39 android:layout_height="wrap_content"
40 android:layout_marginBottom="15dip"
41 android:layout_marginLeft="15dip"
42 android:layout_marginRight="15dip"
43 android:paddingTop="20dip"
44 android:paddingBottom="20dip"
47 <TextView android:id="@+id/carrier"
48 android:layout_width="fill_parent"
49 android:layout_height="wrap_content"
50 android:gravity="right"
51 android:textSize="34sp"
54 <!-- digital clock -->
56 android:orientation="horizontal"
57 android:layout_width="wrap_content"
58 android:layout_height="wrap_content"
61 <com.android.deskclock.DigitalClock android:id="@+id/time"
62 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"
64 android:layout_marginTop="30dip"
65 android:layout_marginBottom="8dip"
68 <TextView android:id="@+id/timeDisplay"
69 android:layout_width="wrap_content"
70 android:layout_height="wrap_content"
71 android:gravity="center"
72 android:textSize="100sp"
73 android:textColor="@color/white"
76 <TextView android:id="@+id/am_pm"
77 android:layout_width="wrap_content"
78 android:layout_height="fill_parent"
79 android:gravity="bottom"
80 android:textSize="28sp"
81 android:textColor="@color/white"
84 </com.android.deskclock.DigitalClock>
88 <TextView android:id="@+id/date"
89 android:layout_width="wrap_content"
90 android:layout_height="wrap_content"
91 android:gravity="left"
92 android:textSize="18sp"
93 android:textColor="@color/white"
96 <!-- TODO: weather -->
97 <View android:id="@+id/weather"
98 android:layout_width="wrap_content"
99 android:layout_height="100dip"
102 <TextView android:id="@+id/nextAlarm"
103 android:layout_width="wrap_content"
104 android:layout_height="wrap_content"
105 android:gravity="left"
106 android:textSize="18sp"
107 android:textColor="@color/white"
112 <!-- TODO: buttons -->
114 android:orientation="horizontal"
115 android:layout_width="fill_parent"
116 android:layout_height="wrap_content"
119 android:background="@null"
120 android:textAppearance="@android:style/TextAppearance.Small.Inverse"
122 <Button android:id="@+id/alarm_button"
123 android:layout_height="wrap_content"
124 android:layout_width="fill_parent"
125 android:layout_weight=".25"
126 android:text="@string/alarm_button_title_placeholder"
128 <Button android:id="@+id/gallery_button"
129 android:layout_height="wrap_content"
130 android:layout_width="fill_parent"
131 android:layout_weight=".25"
132 android:text="@string/gallery_button_title_placeholder"
134 <Button android:id="@+id/music_button"
135 android:layout_height="wrap_content"
136 android:layout_width="fill_parent"
137 android:layout_weight=".25"
138 android:text="@string/music_button_title_placeholder"
140 <Button android:id="@+id/nightmode_button"
141 android:layout_height="wrap_content"
142 android:layout_width="fill_parent"
143 android:layout_weight=".25"
144 android:text="@string/nightmode_button_title_placeholder"
151 <View android:id="@+id/window_tint"
152 android:layout_width="fill_parent"
153 android:layout_height="fill_parent"
154 android:background="#D0000000"
155 android:visibility="visible"
156 android:clickable="false"