Android: CollapsingToolbarLayout centers expanded text but not collapsed text

前端 未结 4 1426
感动是毒
感动是毒 2021-02-05 15:50

I have a CollapsingToolbarLayout that is defined to center both in collapsed and in expanded modes:



        
4条回答
  •  囚心锁ツ
    2021-02-05 16:32

    You need to set app:expandedTitleGravity="center" and remove app:collapsedTitleGravity="center" from your code like

      
    

    Hope this helps you

提交回复
热议问题