summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Tiger <tigerhuang@google.com> 2024-11-14 17:46:04 +0800
committer Tiger <tigerhuang@google.com> 2024-11-14 17:46:04 +0800
commit0932c2961d889fffc705abf092bfb32a20d493a2 (patch)
tree915a7a07eeb0d53ff7719a91ff01e035c7dbd80f
parentf2d350f16dc631144b90d69f7a5d1459d68f86d8 (diff)
Make ListActivity handle insets properly
This CL makes sure each list item is able to be scrolled to a position which makes it not be obscrued by the system window insets. Fix: 378760013 Bug: 309578419 Flag: com.android.window.flags.enforce_edge_to_edge Test: Start com.android.settings/.development.AppPicker, and make sure all the items be able to be revealed by scrolling in combinations of navigation modes and screen orientations. Change-Id: I6ba64d28a3679a78510647bd67516e49baadba5d
-rw-r--r--core/res/res/layout/list_content_simple.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/res/res/layout/list_content_simple.xml b/core/res/res/layout/list_content_simple.xml
index 6f9f1e0f0f6f..961668e6bf2e 100644
--- a/core/res/res/layout/list_content_simple.xml
+++ b/core/res/res/layout/list_content_simple.xml
@@ -20,5 +20,6 @@
<ListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:fitsSystemWindows="true"
android:drawSelectorOnTop="false"
/>