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