Reputation: 567
I am using Scroll View inside constraint layout and it generate white space at the bottom
XML code Here
Upvotes: 3
Views: 2488
Reputation: 176
The issue for me was that in the constraint view, I connected on of the elements to the bottom of the screen. Do not connect any of the UI elements to the bottom. Only use the left, right, and top sides of the screen to set the constraints for all the elements. This solved my issue
Upvotes: 1
Reputation: 4903
Just add android:fillViewport="true"
in the ScrollView works for me.
Upvotes: 4
Reputation: 363
this bug was fixed in com.android.support.constraint:constraint-layout:1.1.0-beta3, but some other bugs added - for example after shared element transition constraint braking for my list element
Upvotes: 0
Reputation: 11245
Change root Scroll View
height
to match_parent
will do that.
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:fillViewport="true"
android:overScrollMode="never"
android:layout_height="match_parent"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="0dp">
Upvotes: 0