OSDN Git Service

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