Set starting height of CollapsingToolbarLayout

前端 未结 3 799
后悔当初
后悔当初 2020-11-30 00:19

I want to be able to scroll on the ImageView inside the CollapsingToolbarLayout. So how that would be possible, and How to set a starting height of that Image view?

3条回答
  •  悲哀的现实
    2020-11-30 00:50

    Just add:

    android:fitsSystemWindows="true"
    app:layout_collapseMode="parallax"
    

    to the ImageView in the CollapsingToolbarLayout.

    You can find more here.

提交回复
热议问题