How I can multiline the expanded title of CollapsingToolbarLayout?

前端 未结 5 1386
暖寄归人
暖寄归人 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:44

    This doesn't seem to be supported at present. A possible workaround is to use your own view and hide the toolbar title when expanded. One approach to do this is here:

    https://stackoverflow.com/a/31529101/834692

    Hopefully a future version of the Support Library will add this.

提交回复
热议问题