1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2016 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<LinearLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="wrap_content" 19 android:layout_height="wrap_content" 20 android:orientation="vertical"> 21 22 <TextClock 23 android:id="@+id/clock" 24 style="@style/widget_big_thin" 25 android:layout_width="wrap_content" 26 android:layout_height="wrap_content" 27 android:layout_gravity="center_horizontal|top" 28 android:includeFontPadding="false" 29 android:ellipsize="none" 30 android:format12Hour="@string/lock_screen_12_hour_format" 31 android:format24Hour="@string/lock_screen_24_hour_format" 32 android:singleLine="true" 33 android:textColor="@color/white" /> 34 35 <LinearLayout 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:layout_gravity="center_horizontal|top"> 39 40 <TextClock 41 android:id="@+id/date" 42 style="@style/widget_label" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:layout_gravity="center" 46 android:includeFontPadding="false" 47 android:ellipsize="none" 48 android:singleLine="true" 49 android:textAllCaps="true" 50 android:textColor="@color/white" /> 51 52 <!-- This view is drawn to a Bitmap and sent to the widget as an icon. --> 53 <TextView 54 android:id="@+id/nextAlarmIcon" 55 style="@style/widget_label" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:layout_gravity="center" 59 android:includeFontPadding="false" 60 android:ellipsize="none" 61 android:singleLine="true" 62 android:text="@string/clock_emoji" 63 android:textColor="@color/white" /> 64 65 <TextView 66 android:id="@+id/nextAlarm" 67 style="@style/widget_label" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:layout_gravity="center" 71 android:includeFontPadding="false" 72 android:ellipsize="none" 73 android:singleLine="true" 74 android:textAllCaps="true" 75 android:textColor="@color/white" /> 76 77 </LinearLayout> 78 79</LinearLayout> 80