I am trying to use the new NestedScrollView
from the support libraries. I want the scrollable content to expand to match parent if it is smaller. I see that to do that, I'm supposed to add fillViewport=true
to the NestedScrollView
. When I do this, my scrollable content doesn't stretch vertically, it instead stretches horizontally off-screen.
The layout card_movie simply has a RelativeLayout
with some TextViews and one ImageView
inside it. Nothing special.
I have used it like this:
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
...
Maybe the difference is that the linear layout has a specified orientation or maybe I am using a more updated library com.android.support:design:23.1.0
and that is the reason why I cant reproduce your problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With