I got an Activity
with two Fragment
s (one list one normal).
And the normal Fragment
inflates a Scrollview
containing a
If i'm not mistaken, the ViewGroup
's height (LinearLayout
's height in your case), that is the (only) child inside a ScrollView
, is always interpreted as wrap_content, since that content can be larger than the ScrollView
's height (hence the scrollbars).
This also means that if the content is smaller, the ScrollView
's content (child) may not necessarily stretch to fill the screen.
In order to visually help you fix this, we need to see a screenshot of your problem.
Maybe setting android:fillViewport="true"
on the ScrollView
will fix your issue: