Fix layout problem in "All apps" view
Fix layout problem which prevents the user from
scrolling to the last list item in the "all apps"
view when the spinner ("all apps", "installed apps"
,"disable apps") is present.
Bug: 199476116
Test: 1. Enter Settings -> All apps
2. Disable any app
3. Scroll to the end of the app list
The last item (e.g. YouTube) should not be visible
underneath the navigation bar.
Change-Id: I1c29fd979697316e48460e466c33f202dcf6a8f4
diff --git a/res/layout/manage_applications_apps.xml b/res/layout/manage_applications_apps.xml
index f8f4a76..a9cd72a 100644
--- a/res/layout/manage_applications_apps.xml
+++ b/res/layout/manage_applications_apps.xml
@@ -32,7 +32,10 @@
settings:fastScrollHorizontalTrackDrawable="@drawable/line_drawable"
settings:fastScrollVerticalThumbDrawable="@drawable/thumb_drawable"
settings:fastScrollVerticalTrackDrawable="@drawable/line_drawable"
- settings:layout_constraintTop_toBottomOf="@id/pinned_header"/>
+ settings:layout_constrainedHeight="true"
+ settings:layout_constraintVertical_bias="0.0"
+ settings:layout_constraintTop_toBottomOf="@id/pinned_header"
+ settings:layout_constraintBottom_toBottomOf="parent"/>
<TextView
android:id="@android:id/empty"
@@ -55,7 +58,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:colorBackground"
- settings:layout_constraintTop_toTopOf="parent"/>
+ settings:layout_constraintVertical_chainStyle="packed"
+ settings:layout_constraintVertical_bias="0.0"
+ settings:layout_constraintTop_toTopOf="parent"
+ settings:layout_constraintBottom_toTopOf="@id/apps_list"/>
</androidx.constraintlayout.widget.ConstraintLayout>