OSDN Git Service

Rename Desk Clock (back) to Alarm Clock.
[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         >
32
33         <!-- Entire display region (everything but bottom buttons) -->
34         <LinearLayout
35             android:orientation="vertical"
36             android:layout_gravity="left"
37             android:layout_weight="1"
38             android:layout_width="fill_parent"
39             android:layout_height="fill_parent"
40             android:layout_marginLeft="20dip"
41             android:layout_marginTop="20dip"
42             android:layout_marginRight="14dip"
43             android:layout_marginBottom="14dip"
44             >
45
46             <!-- across the top: next alarm, nightmode button -->
47             <LinearLayout
48                 android:orientation="horizontal"
49                 android:layout_width="fill_parent"
50                 android:layout_height="wrap_content"
51                 android:layout_weight="0"
52                 android:layout_marginBottom="6dip"
53                 >
54                 <TextView android:id="@+id/nextAlarm"
55                     android:layout_width="wrap_content"
56                     android:layout_height="wrap_content"
57                     android:layout_weight="1"
58                     android:gravity="left"
59                     android:textSize="18sp"
60                     android:textColor="#FFFFFFFF"
61                     android:drawablePadding="6dip"
62                     android:drawableLeft="@android:drawable/ic_lock_idle_alarm"
63                     android:shadowColor="#C0000000"
64                     android:shadowDx="0"
65                     android:shadowDy="0"
66                     android:shadowRadius="3.0"                        
67                     />
68                 <Button android:id="@+id/nightmode_button"
69                     android:layout_weight="0"
70                     android:layout_height="wrap_content"
71                     android:layout_width="wrap_content"
72                     android:text="@string/nightmode_button_title_placeholder"
73                     />
74             </LinearLayout>
75
76             <include layout="@layout/desk_clock_time_date"
77                 android:layout_weight="1"
78                 android:layout_width="wrap_content"
79                 android:layout_height="wrap_content"
80                 android:layout_marginBottom="12dip"
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_marginBottom="12dip"
88                 />
89
90             <include layout="@layout/desk_clock_battery"
91                 android:layout_height="wrap_content"
92                 android:layout_width="fill_parent"
93                 android:layout_weight="0"
94                 />
95
96         </LinearLayout>
97
98         <include layout="@layout/desk_clock_buttons" />
99
100     </LinearLayout>
101
102     <View android:id="@+id/window_tint"
103         android:layout_width="fill_parent"
104         android:layout_height="fill_parent"
105         android:background="#E0000000"
106         android:visibility="visible"
107         android:clickable="false"
108         />
109
110 </FrameLayout>