Why Android is truncating my ActionBar title?

前端 未结 13 2084
Happy的楠姐
Happy的楠姐 2021-02-13 10:28

In my app, I change the title in the ActionBar from each fragment displayed. When I first start my apps, I got a list of requests, so my title is \"My requests (20)\".

T

13条回答
  •  醉话见心
    2021-02-13 11:09

    In my case the text was being truncated but not with ellipsis (...), the last character was always cut, like this:

    I found out that changing the toolbar width from "wrap_content", to "match_parent" solves the issue:

        
    

提交回复
热议问题