98484db4ea
- Surprisingly swithcing between GONE and VISIBLE doesn't cause a jank when swiping up - Having DigitalWellBeingToast GONE should reduce the amount of time to layout RecentsView when there is no banner, which should fix b/364621823 - It might or might not reduce memory usage in b/364568201 - Also add missing accessibiltiy node for DigitalWellBeingToast Bug: 364621823 Test: Swipe up with the app having DWB banner in different index, no jank when landing to Overivew Flag: EXEMPT BUG_FIX Change-Id: Ibf5a7f5318de509fe572779dd774dce71881aabe
31 lines
1.3 KiB
XML
31 lines
1.3 KiB
XML
<?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.
|
|
-->
|
|
<com.android.quickstep.views.DigitalWellBeingToast
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
|
style="@style/TextTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/digital_wellbeing_toast_height"
|
|
android:background="@drawable/bg_wellbeing_toast"
|
|
android:forceHasOverlappingRendering="false"
|
|
android:gravity="center"
|
|
android:importantForAccessibility="noHideDescendants"
|
|
android:textColor="?attr/materialColorOnSecondaryFixed"
|
|
android:textSize="14sp"
|
|
android:autoSizeTextType="uniform"
|
|
android:autoSizeMaxTextSize="14sp"
|
|
android:visibility="gone"/> |