Using windowTranslucentStatus with CollapsingToolbarLayout

前端 未结 7 1603
南旧
南旧 2020-12-14 06:09

I\'m trying to get a similar effect to what is seen on google play.

I\'ve got the below layout to show a transparent toolbar with an image behind it. When the user s

7条回答
  •  暖寄归人
    2020-12-14 06:50

    There has now been an update to the design library. I'm guessing that the issue posted above was a bug.

    If you update the design library to the latest version this issue no longer occurs.

    I have now removed all fitsSystemWindows="true" except for the ImageView (as that needs to display under the status bar).

    I have also removed the minus padding from the Toolbar.

    This is my theme for 21+

    
    

    It all works as expected now

提交回复
热议问题