• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="@drawable/ic_lock_idle_alarm"
64                    android:shadowColor="#C0000000"
65                    android:shadowDx="0"
66                    android:shadowDy="0"
67                    android:shadowRadius="3.0"
68                    />
69                <ImageButton android:id="@+id/nightmode_button"
70					style="@style/RoundTouchButton"
71                    android:layout_weight="0"
72                    android:layout_height="wrap_content"
73                    android:layout_width="wrap_content"
74                    android:src="@drawable/ic_round_brightness"
75                    android:contentDescription="@string/nightmode_button_description"
76                    />
77            </LinearLayout>
78
79            <include layout="@layout/desk_clock_time_date"
80                android:layout_weight="1"
81                android:layout_width="wrap_content"
82                android:layout_height="wrap_content"
83                />
84
85            <include layout="@layout/desk_clock_weather"
86                android:layout_width="wrap_content"
87                android:layout_height="wrap_content"
88                android:layout_weight="0"
89                android:layout_marginTop="12dip"
90                android:layout_marginBottom="12dip"
91                />
92
93            <include layout="@layout/desk_clock_battery"
94                android:layout_height="wrap_content"
95                android:layout_width="fill_parent"
96                android:layout_weight="0"
97                />
98
99        </LinearLayout>
100
101        <include layout="@layout/desk_clock_buttons" />
102
103    </LinearLayout>
104
105    <View android:id="@+id/window_tint"
106        android:layout_width="fill_parent"
107        android:layout_height="fill_parent"
108        android:background="#E0000000"
109        android:visibility="visible"
110        android:clickable="false"
111        />
112
113</FrameLayout>
114