Android CollapsingToolbarLayout Title background

前端 未结 4 1320
無奈伤痛
無奈伤痛 2020-12-12 17:31

I\'m working with the CollapsingToolbarLayout from the new Android Design Support Library.

I have set its title and it is working fine, the only problem I still have

4条回答
  •  盖世英雄少女心
    2020-12-12 17:51

    Edit:

    If you want to change the color of the toolbar once it has "shrunk", you need to set the contentScrim attribute of the collapsing toolbar layout to that color:

    
    

    Pointing the value of this attribute to the color you want the toolbar to turn into will solve your issue, as I understand it.

    Hope that answers your question!

提交回复
热议问题