1<?xml version="1.0" encoding="utf-8"?><!-- 2 Copyright (C) 2021 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<FrameLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:id="@+id/lock_overlay" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:background="@color/lock_screen_scrim_color"> 23 24 <TextView 25 android:id="@+id/lock_date" 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:layout_marginStart="32dp" 29 android:layout_marginTop="84dp" 30 android:paddingVertical="16dp" 31 android:gravity="center" 32 android:fontFamily="@*android:string/config_headlineFontFamily" 33 android:textColor="@color/lock_screen_text_color" 34 android:textSize="@dimen/lock_screen_preview_date_text_size" 35 android:lineHeight="@dimen/lock_screen_preview_date_line_height" /> 36 37 <!-- Not going to depend on dp but ratio to keep clock always at the same position. --> 38 <androidx.constraintlayout.widget.ConstraintLayout 39 android:layout_width="match_parent" 40 android:layout_height="match_parent"> 41 <!-- Must specify android.widget.TextView to make android:fontVariationSettings work. --> 42 <android.widget.TextView 43 android:id="@+id/lock_time" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:layout_gravity="center" 47 android:gravity="center_horizontal" 48 android:fontFamily="@font/clock" 49 android:textColor="@color/color_accent_primary" 50 android:typeface="monospace" 51 android:textSize="@dimen/lock_screen_preview_time_text_size" 52 android:lineSpacingMultiplier="0.7" 53 android:elegantTextHeight="false" 54 android:fontVariationSettings="'wght' 300" 55 app:layout_constraintBottom_toBottomOf="parent" 56 app:layout_constraintEnd_toEndOf="parent" 57 app:layout_constraintStart_toStartOf="parent" 58 app:layout_constraintTop_toTopOf="parent" 59 app:layout_constraintVertical_bias="0.57"/> 60 </androidx.constraintlayout.widget.ConstraintLayout> 61</FrameLayout>