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