mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
I made a sample task where the content of the app was centered, and I added lines to demonstrate the center while in Overview. As you can see, the center of the app content is slightly different from the TaskView in Recents - it seems part of the bottom of the app gets removed when transitioning to Recents (for the rounded corner radius or nav bar?). On Pixel 4, I had to add 46dp of padding to the bottom line for it to appear at the bottom of the screenshot in Recents. Screenshot: https://drive.google.com/file/d/1xzQNXWb0T0UGDhDS9Ov-AduM3nd-pfg8/view?usp=sharing Before: https://drive.google.com/file/d/1ghN9VWP44XjcZkdmI106dy4_jB4Vs4J3/view?usp=sharing Rotating between landscape and portrait: https://drive.google.com/file/d/1OD5aKT9LCE5w950-6AaHfWXU4sLyW3Qe/view?usp=sharing Fixes: 154964045 Change-Id: I594057e3b5df58c5a907b6ca14daa700d5011b7b
26 lines
1.1 KiB
XML
26 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2018 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.ClearAllButton
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
style="@android:style/Widget.DeviceDefault.Button.Borderless"
|
|
android:id="@+id/clear_all"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/recents_clear_all"
|
|
android:textColor="?attr/workspaceTextColor"
|
|
android:textSize="14sp"
|
|
android:translationY="@dimen/task_thumbnail_half_top_margin" /> |