• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2018, The Android Open Source Project
5**
6** Licensed under the Apache License, Version 2.0 (the "License")
7** you may not use this file except in compliance with the License.
8** You may obtain a copy of the License at
9**
10**     http://www.apache.org/licenses/LICENSE-2.0
11**
12** Unless required by applicable law or agreed to in writing, software
13** distributed under the License is distributed on an "AS IS" BASIS,
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15** See the License for the specific language governing permissions and
16** limitations under the License.
17*/
18-->
19
20<!-- This is a view that shows clock information in Keyguard. -->
21<com.android.keyguard.KeyguardClockSwitch
22    xmlns:android="http://schemas.android.com/apk/res/android"
23    android:id="@+id/keyguard_clock_container"
24    android:layout_width="match_parent"
25    android:layout_height="wrap_content"
26    android:layout_gravity="center_horizontal|top">
27    <FrameLayout
28        android:id="@+id/lockscreen_clock_view"
29        android:layout_width="wrap_content"
30        android:layout_height="wrap_content"
31        android:layout_alignParentStart="true"
32        android:layout_alignParentTop="true"
33        android:paddingStart="@dimen/clock_padding_start">
34        <com.android.keyguard.AnimatableClockView
35            android:id="@+id/animatable_clock_view"
36            android:layout_width="wrap_content"
37            android:layout_height="wrap_content"
38            android:layout_gravity="start"
39            android:gravity="start"
40            android:textSize="@dimen/clock_text_size"
41            android:fontFamily="@font/clock"
42            android:elegantTextHeight="false"
43            android:singleLine="true"
44            android:fontFeatureSettings="pnum"
45            chargeAnimationDelay="350"
46            dozeWeight="200"
47            lockScreenWeight="400"
48        />
49    </FrameLayout>
50    <FrameLayout
51        android:id="@+id/lockscreen_clock_view_large"
52        android:layout_width="match_parent"
53        android:layout_height="wrap_content"
54        android:layout_below="@id/keyguard_status_area"
55        android:visibility="gone">
56        <com.android.keyguard.AnimatableClockView
57            android:id="@+id/animatable_clock_view_large"
58            android:layout_width="wrap_content"
59            android:layout_height="wrap_content"
60            android:layout_gravity="center"
61            android:gravity="center_horizontal"
62            android:textSize="@dimen/large_clock_text_size"
63            android:fontFamily="@font/clock"
64            android:typeface="monospace"
65            android:elegantTextHeight="false"
66            chargeAnimationDelay="200"
67            dozeWeight="200"
68            lockScreenWeight="400"
69        />
70    </FrameLayout>
71    <include layout="@layout/keyguard_status_area"
72        android:id="@+id/keyguard_status_area"
73        android:layout_width="match_parent"
74        android:layout_height="wrap_content"
75        android:layout_alignParentStart="true"
76        android:layout_below="@id/lockscreen_clock_view" />
77
78    <com.android.systemui.statusbar.phone.NotificationIconContainer
79        android:id="@+id/left_aligned_notification_icon_container"
80        android:layout_width="match_parent"
81        android:layout_height="@dimen/notification_shelf_height"
82        android:layout_below="@id/keyguard_status_area"
83        android:paddingStart="@dimen/below_clock_padding_start_icons"
84        android:visibility="invisible"
85    />
86</com.android.keyguard.KeyguardClockSwitch>
87