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="@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 <ImageButton android:id="@+id/nightmode_button" 76 style="@style/RoundTouchButton" 77 android:layout_weight="0" 78 android:layout_height="wrap_content" 79 android:layout_width="wrap_content" 80 android:src="@drawable/ic_round_brightness" 81 android:contentDescription="@string/nightmode_button_description" 82 /> 83 </LinearLayout> 84 85 <!-- second row: date/time on the left, weather on the right --> 86 <LinearLayout 87 android:orientation="horizontal" 88 android:layout_weight="1" 89 android:layout_width="fill_parent" 90 android:layout_height="wrap_content" 91 android:gravity="bottom" 92 android:layout_marginBottom="12dip" 93 > 94 95 <include layout="@layout/desk_clock_time_date" 96 android:layout_height="wrap_content" 97 android:layout_width="wrap_content" 98 android:layout_weight="1" 99 /> 100 101 <include layout="@layout/desk_clock_weather" 102 android:layout_height="wrap_content" 103 android:layout_width="wrap_content" 104 android:layout_marginLeft="12dip" 105 /> 106 107 108 </LinearLayout> 109 110 </LinearLayout> 111 112 <include layout="@layout/desk_clock_buttons" /> 113 114 </LinearLayout> 115 116 <View android:id="@+id/window_tint" 117 android:layout_width="fill_parent" 118 android:layout_height="fill_parent" 119 android:background="#E0000000" 120 android:visibility="visible" 121 android:clickable="false" 122 /> 123 124</FrameLayout> 125