Skip to content Skip to sidebar Skip to footer

Scroll Behavior Of Flexible Space In Android

To prevent from re-posting all my code again, it can be found in this question. What I'd like to do now, is to prevent the upper imageview from shrinking upon scrolling; instead, I

Solution 1:

This simplest way would be to set the parallax multiplier to 1:

<ImageView
    android:id="@+id/backdrop"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:scaleType="centerCrop"
    android:fitsSystemWindows="true"
    app:layout_collapseMode="parallax"
    app:layout_collapseParallaxMultiplier="1" />

Post a Comment for "Scroll Behavior Of Flexible Space In Android"