1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2012 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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/main_clock_frame" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:gravity="center_horizontal" 22 android:orientation="vertical" 23 android:paddingEnd="@dimen/clock_fragment_end_padding"> 24 25 <FrameLayout 26 android:layout_width="wrap_content" 27 android:layout_height="0dp" 28 android:layout_weight="1"> 29 30 <com.android.deskclock.AnalogClock 31 android:id="@+id/analog_clock" 32 android:layout_width="wrap_content" 33 android:layout_height="wrap_content" 34 android:layout_marginBottom="@dimen/bottom_text_spacing_analog" 35 android:layout_marginEnd="@dimen/analog_clock_margin" 36 android:layout_marginLeft="@dimen/analog_clock_margin" 37 android:layout_marginRight="@dimen/analog_clock_margin" 38 android:layout_marginStart="@dimen/analog_clock_margin" 39 android:layout_marginTop="@dimen/circle_margin_top" 40 android:dial="@drawable/clock_analog_dial_mipmap" 41 android:hand_hour="@drawable/clock_analog_hour_mipmap" 42 android:hand_minute="@drawable/clock_analog_minute_mipmap" /> 43 44 <TextClock 45 android:id="@+id/digital_clock" 46 style="@style/big_thin" 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 android:ellipsize="none" 50 android:format12Hour="@string/main_clock_12_hours_format" 51 android:format24Hour="@string/clock_24_hours_format" 52 android:singleLine="true" 53 android:textColor="@color/clock_white" 54 android:textSize="@dimen/main_clock_font_size" /> 55 56 </FrameLayout> 57 58 <LinearLayout 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:gravity="center_horizontal"> 62 63 <TextView 64 android:id="@+id/date" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:textAppearance="@style/PrimaryLabelTextAppearance" /> 68 69 <TextView 70 android:id="@+id/nextAlarm" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:layout_marginLeft="8dip" 74 android:layout_marginStart="8dip" 75 android:drawablePadding="2dip" 76 android:drawableStart="@drawable/ic_alarm_small" 77 android:textAppearance="@style/SecondaryLabelTextAppearance" /> 78 </LinearLayout> 79 80 <View 81 android:id="@+id/hairline" 82 android:layout_width="match_parent" 83 android:layout_height="@dimen/hairline_height" 84 android:layout_marginTop="24dip" 85 android:background="@color/hairline" /> 86 </LinearLayout> 87 88