Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

constraint layout inside scrollview white space at bottom?

 You can see here Extra Space after submitI am using Scroll View inside constraint layout and it generate white space at the bottom XML code Here

like image 499
Harsh Singhal Avatar asked Jun 05 '26 15:06

Harsh Singhal


2 Answers

Just add android:fillViewport="true" in the ScrollView works for me.

like image 175
fandro Avatar answered Jun 08 '26 03:06

fandro


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

like image 30
user3407133 Avatar answered Jun 08 '26 05:06

user3407133



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!