How I can multiline the expanded title of CollapsingToolbarLayout?

前端 未结 5 1401
暖寄归人
暖寄归人 2021-02-03 20:13

My problem is the next. I would use relatively large texts as CollapsingToolbarLayout title so I need to show it as multiline mode. When I try to change text appearance through

5条回答
  •  庸人自扰
    2021-02-03 20:51

    I did this with help from this library

    https://github.com/opacapp/multiline-collapsingtoolbar

    add the library to your project and replace the CollapsingToolbarLayout with net.opacapp.multilinecollapsingtoolbar.CollapsingToolbarLayout

提交回复
热议问题