• 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:clipChildren="false"
27    android:layout_gravity="center_horizontal|top">
28    <FrameLayout
29        android:id="@+id/lockscreen_clock_view"
30        android:layout_width="wrap_content"
31        android:layout_height="wrap_content"
32        android:layout_alignParentStart="true"
33        android:layout_alignParentTop="true"
34        android:paddingStart="@dimen/clock_padding_start"
35        android:visibility="invisible" />
36    <FrameLayout
37        android:id="@+id/lockscreen_clock_view_large"
38        android:layout_width="match_parent"
39        android:layout_height="match_parent"
40        android:clipChildren="false"
41        android:visibility="gone" />
42
43    <!-- Not quite optimal but needed to translate these items as a group. The
44         NotificationIconContainer has its own logic for translation. -->
45    <LinearLayout
46        android:id="@+id/keyguard_status_area"
47        android:orientation="vertical"
48        android:layout_width="match_parent"
49        android:layout_height="wrap_content"
50        android:layout_alignParentStart="true"
51        android:layout_below="@id/lockscreen_clock_view">
52
53      <include layout="@layout/keyguard_slice_view"
54               android:id="@+id/keyguard_slice_view"
55               android:layout_width="match_parent"
56               android:layout_height="wrap_content" />
57
58      <com.android.systemui.statusbar.phone.NotificationIconContainer
59          android:id="@+id/left_aligned_notification_icon_container"
60          android:layout_width="match_parent"
61          android:layout_height="@dimen/notification_shelf_height"
62          android:paddingStart="@dimen/below_clock_padding_start_icons"
63          android:visibility="invisible"
64          />
65    </LinearLayout>
66</com.android.keyguard.KeyguardClockSwitch>
67