I made an activity where image should collapse with toolbar and only text below would be visible. But When Toolbar being collapsed, there shows up a large gap between Toolba
Adding:
android:layout_gravity="fill_vertical"
to the NestedScrollView worked for me.
NestedScrollView