OSDN Git Service

AlarmClock tweaks.
[android-x86/packages-apps-DeskClock.git] / res / layout / desk_clock.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2009 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 <!-- 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.
21      -->
22 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
23     android:layout_width="fill_parent"
24     android:layout_height="fill_parent"
25     >
26     <LinearLayout
27         android:id="@+id/desk_clock"
28         android:layout_width="fill_parent"
29         android:layout_height="fill_parent"
30         android:orientation="vertical"
31         android:paddingTop="18dip"
32         >
33
34         <!-- Entire display region (everything but bottom buttons) -->
35         <LinearLayout
36             android:orientation="vertical"
37             android:layout_gravity="left"
38             android:layout_weight="1"
39             android:layout_width="fill_parent"
40             android:layout_height="fill_parent"
41             android:layout_marginLeft="20dip"
42             android:layout_marginTop="20dip"
43             android:layout_marginRight="14dip"
44             android:layout_marginBottom="14dip"
45             >
46
47             <!-- across the top: next alarm, nightmode button -->
48             <LinearLayout
49                 android:orientation="horizontal"
50                 android:layout_width="fill_parent"
51                 android:layout_height="wrap_content"
52                 android:layout_weight="0"
53                 android:layout_marginBottom="6dip"
54                 >
55                 <TextView android:id="@+id/nextAlarm"
56                     android:layout_width="wrap_content"
57                     android:layout_height="wrap_content"
58                     android:layout_weight="1"
59                     android:gravity="left"
60                     android:textSize="18sp"
61                     android:textColor="#FFFFFFFF"
62                     android:drawablePadding="6dip"
63                     android:drawableLeft="@android:drawable/ic_lock_idle_alarm"
64                     android:shadowColor="#C0000000"
65                     android:shadowDx="0"
66                     android:shadowDy="0"
67                     android:shadowRadius="3.0"                        
68                     />
69                 <Button android:id="@+id/nightmode_button"
70                     android:layout_weight="0"
71                     android:layout_height="wrap_content"
72                     android:layout_width="wrap_content"
73                     android:text="@string/nightmode_button_title_placeholder"
74                     />
75             </LinearLayout>
76
77             <include layout="@layout/desk_clock_time_date"
78                 android:layout_weight="1"
79                 android:layout_width="wrap_content"
80                 android:layout_height="wrap_content"
81                 />
82
83             <include layout="@layout/desk_clock_weather"
84                 android:layout_width="wrap_content"
85                 android:layout_height="wrap_content"
86                 android:layout_weight="0"
87                 android:layout_marginTop="12dip"
88                 android:layout_marginBottom="12dip"
89                 />
90
91             <include layout="@layout/desk_clock_battery"
92                 android:layout_height="wrap_content"
93                 android:layout_width="fill_parent"
94                 android:layout_weight="0"
95                 />
96
97         </LinearLayout>
98
99         <include layout="@layout/desk_clock_buttons" />
100
101     </LinearLayout>
102
103     <View android:id="@+id/window_tint"
104         android:layout_width="fill_parent"
105         android:layout_height="fill_parent"
106         android:background="#E0000000"
107         android:visibility="visible"
108         android:clickable="false"
109         />
110
111 </FrameLayout>