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="match_parent" 24 android:layout_height="match_parent" 25 > 26 27 <View android:id="@+id/window_touch" 28 android:layout_width="match_parent" 29 android:layout_height="match_parent" 30 android:background="#00000000" 31 android:visibility="visible" 32 android:clickable="false" 33 /> 34 35 <!-- the top padding accounts for the status bar area --> 36 <LinearLayout 37 android:id="@+id/desk_clock" 38 android:layout_width="match_parent" 39 android:layout_height="match_parent" 40 android:orientation="vertical" 41 android:paddingTop="25dip" 42 > 43 44 <!-- nightmode button, the time, the date, and the next alarm --> 45 <LinearLayout 46 android:orientation="vertical" 47 android:layout_width="match_parent" 48 android:layout_height="wrap_content" 49 android:layout_weight="1" 50 android:gravity="center_vertical|right" 51 > 52 <include layout="@layout/desk_clock_time_date" 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:layout_marginTop="@dimen/time_margin_top" 56 android:layout_marginBottom="@dimen/time_margin_bottom" 57 android:gravity="right" 58 /> 59 <TextView android:id="@+id/nextAlarm" 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" 62 android:layout_marginRight="@dimen/time_margin_right" 63 android:paddingRight="@dimen/font_margin_adjust" 64 android:gravity="right" 65 android:textAppearance="?android:attr/textAppearanceMedium" 66 android:textSize="@dimen/next_alarm_text_size" 67 android:layout_marginTop="@dimen/next_alarm_margin_top" 68 android:drawablePadding="4dip" 69 android:drawableLeft="@drawable/ic_lock_idle_alarm" 70 android:textColor="@color/ampm_text_color" 71 /> 72 </LinearLayout> 73 74 <include layout="@layout/desk_clock_battery" 75 android:layout_height="wrap_content" 76 android:layout_width="match_parent" 77 android:layout_weight="0" 78 android:layout_marginLeft="4dip" 79 /> 80 81 </LinearLayout> 82 83 <View android:id="@+id/window_tint" 84 android:layout_width="match_parent" 85 android:layout_height="match_parent" 86 android:background="#CC000000" 87 android:visibility="visible" 88 android:clickable="false" 89 /> 90 91 </FrameLayout> 92