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 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:gravity="center_horizontal"> 22 23 <!-- Left gutter. --> 24 <Space 25 android:layout_width="0dp" 26 android:layout_height="match_parent" 27 android:layout_weight="@integer/gutter_width_percent" /> 28 29 <LinearLayout 30 android:layout_width="0dp" 31 android:layout_height="wrap_content" 32 android:layout_weight="@integer/guttered_content_width_percent" 33 android:gravity="center_horizontal" 34 android:orientation="vertical"> 35 36 <FrameLayout 37 android:layout_width="wrap_content" 38 android:layout_height="0dp" 39 android:layout_weight="1"> 40 41 <com.android.deskclock.AnalogClock 42 android:id="@+id/analog_clock" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:layout_marginEnd="@dimen/analog_clock_margin" 46 android:layout_marginLeft="@dimen/analog_clock_margin" 47 android:layout_marginRight="@dimen/analog_clock_margin" 48 android:layout_marginStart="@dimen/analog_clock_margin" 49 android:layout_marginTop="@dimen/circle_margin_top" /> 50 51 <com.android.deskclock.widget.AutoSizingTextClock 52 android:id="@+id/digital_clock" 53 style="@style/display_time" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:ellipsize="none" 57 android:includeFontPadding="false" 58 android:paddingTop="@dimen/main_clock_digital_padding" 59 android:singleLine="true" 60 android:textSize="@dimen/main_clock_digital_font_size" /> 61 62 </FrameLayout> 63 64 <include layout="@layout/date_and_next_alarm_time" /> 65 66 <View 67 android:id="@+id/hairline" 68 android:layout_width="match_parent" 69 android:layout_height="@dimen/hairline_height" 70 android:layout_marginTop="24dp" 71 android:background="@color/hairline" /> 72 </LinearLayout> 73 74 <!-- Right gutter. --> 75 <Space 76 android:layout_width="0dp" 77 android:layout_height="match_parent" 78 android:layout_weight="@integer/gutter_width_percent" /> 79 80</LinearLayout>