OSDN Git Service

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