From ff0c73bfcbcf8912cd5fb7b213ef44d92386889b Mon Sep 17 00:00:00 2001 From: Tsung-Mao Fang Date: Wed, 2 Jun 2021 20:47:57 +0800 Subject: [PATCH] Fix overlapping problem on running services page For Android S, all pages support collpasing tool bar. We add coordinatorLayout to work with collpasing tool bar layout. And coordinatorLayout only works with RecyclerView and NestedScrollView. Unfortunately, the list was implemented by listView many years ago. Because it's a very hidden page and the page is not maintained anymore, we don't consider to migrate to RecyclerView. Simply enable nested scrolling behavior for listview at this moment. I also make some small refactorings in this cl. 1) Update the layout padding. 2) Format the xml file. 3) Create a individual cl for this page only. Test: Don't see the overlapping problem Fix: 188539741 Change-Id: I21c61e35a06b85ca7c309d1d3182b38b4bb38212 --- res/layout/manage_applications_running.xml | 13 ++-- res/layout/running_processes_header.xml | 2 +- res/layout/running_processes_item.xml | 2 +- res/layout/running_processes_view.xml | 1 + res/layout/running_services_app_item.xml | 70 ++++++++++++++++++++++ 5 files changed, 80 insertions(+), 8 deletions(-) create mode 100644 res/layout/running_services_app_item.xml diff --git a/res/layout/manage_applications_running.xml b/res/layout/manage_applications_running.xml index 6a9d4e53d75..c8d6f92e881 100644 --- a/res/layout/manage_applications_running.xml +++ b/res/layout/manage_applications_running.xml @@ -14,14 +14,15 @@ limitations under the License. --> - + + android:layout_width="match_parent" + android:layout_height="match_parent" > diff --git a/res/layout/running_processes_item.xml b/res/layout/running_processes_item.xml index 6b8547a0dd2..427ef8e815b 100644 --- a/res/layout/running_processes_item.xml +++ b/res/layout/running_processes_item.xml @@ -31,5 +31,5 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_toStartOf="@id/widget_summary" - layout="@layout/preference_app"/> + layout="@layout/running_services_app_item"/> \ No newline at end of file diff --git a/res/layout/running_processes_view.xml b/res/layout/running_processes_view.xml index a1cc6abf1ad..4d96ea07965 100644 --- a/res/layout/running_processes_view.xml +++ b/res/layout/running_processes_view.xml @@ -33,6 +33,7 @@ android:paddingEnd="0dp" android:drawSelectorOnTop="false" android:scrollbarStyle="outsideOverlay" + android:nestedScrollingEnabled="true" android:fastScrollEnabled="true"/> + + + + + + + + + + + + + + + +