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<!-- digital clock for the digital widget --> 18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:orientation="vertical" 22 android:layout_gravity="center" 23 android:baselineAligned="false" 24 android:background="?android:attr/selectableItemBackground" 25 > 26 27 <TextClock 28 android:id="@+id/the_clock" 29 android:format12Hour="@string/main_widget_12_hours_format" 30 android:format24Hour="@string/clock_24_hours_format" 31 android:layout_width="wrap_content" 32 android:layout_height="wrap_content" 33 android:singleLine="true" 34 style="@style/widget_big_thin" 35 android:textColor="@color/clock_white" 36 android:layout_gravity="center_horizontal|top" 37 android:baselineAligned="true" 38 android:layout_marginBottom="@dimen/bottom_text_spacing_digital" 39 /> 40 <LinearLayout 41 android:layout_width="match_parent" 42 android:layout_height="wrap_content" 43 android:id="@+id/date_and_alarm" 44 android:gravity="center"> 45 <TextClock android:id="@+id/date" 46 style="@style/widget_label" 47 android:layout_width="wrap_content" 48 android:layout_height="match_parent" 49 android:layout_gravity="center" 50 android:format12Hour="" 51 android:format24Hour="" 52 android:gravity="center" 53 android:textColor="@color/clock_white" 54 /> 55 <TextView 56 android:id="@+id/nextAlarm" 57 style="@style/widget_label" 58 android:layout_width="wrap_content" 59 android:layout_height="match_parent" 60 android:layout_gravity="center" 61 android:layout_marginStart="6dp" 62 android:drawablePadding="6dp" 63 android:ellipsize="end" 64 android:gravity="center" 65 android:singleLine="true" 66 android:textColor="@color/clock_gray" 67 android:visibility="gone" 68 /> 69 </LinearLayout> 70</LinearLayout> 71