Adds the keyguard indication area overlays
Bug: 130334691 Test: atest SystemUITests:KeyguardBottomAreaTest Change-Id: I2f40e02a960319ce433b54db6e1357401306013c
This commit is contained in:
@@ -31,23 +31,36 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/keyguard_indication_margin_bottom"
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
android:orientation="vertical">
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.android.systemui.statusbar.phone.KeyguardIndicationTextView
|
||||
android:id="@+id/keyguard_indication_enterprise_disclosure"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textAppearance="@style/TextAppearance.Keyguard.BottomArea"
|
||||
android:visibility="gone" />
|
||||
<include layout="@layout/left_docked_overlay" />
|
||||
|
||||
<com.android.systemui.statusbar.phone.KeyguardIndicationTextView
|
||||
android:id="@+id/keyguard_indication_text"
|
||||
android:layout_width="match_parent"
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textAppearance="@style/TextAppearance.Keyguard.BottomArea"
|
||||
android:accessibilityLiveRegion="polite" />
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center_vertical|center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.android.systemui.statusbar.phone.KeyguardIndicationTextView
|
||||
android:id="@+id/keyguard_indication_enterprise_disclosure"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textAppearance="@style/TextAppearance.Keyguard.BottomArea"
|
||||
android:visibility="gone" />
|
||||
|
||||
<com.android.systemui.statusbar.phone.KeyguardIndicationTextView
|
||||
android:id="@+id/keyguard_indication_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textAppearance="@style/TextAppearance.Keyguard.BottomArea"
|
||||
android:accessibilityLiveRegion="polite" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<include layout="@layout/right_docked_overlay" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
19
packages/SystemUI/res/layout/left_docked_overlay.xml
Normal file
19
packages/SystemUI/res/layout/left_docked_overlay.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2019 The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<!-- empty stub -->
|
||||
<merge />
|
||||
19
packages/SystemUI/res/layout/right_docked_overlay.xml
Normal file
19
packages/SystemUI/res/layout/right_docked_overlay.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2019 The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<!-- empty stub -->
|
||||
<merge />
|
||||
Reference in New Issue
Block a user