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 LANDSCAPE desk dock mode.
19 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 android:layout_width="fill_parent"
21 android:layout_height="fill_parent"
24 android:id="@+id/desk_clock"
25 android:layout_width="fill_parent"
26 android:layout_height="fill_parent"
27 android:orientation="vertical"
30 <!-- Entire display region (everything but bottom buttons) -->
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"
43 <!-- across the top: next alarm, battery, nightmode button -->
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"
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"
64 android:shadowRadius="3.0"
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"
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"
82 <!-- second row: date/time on the left, weather on the right -->
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"
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" />
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"
110 <include layout="@layout/desk_clock_buttons" />
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"