Activity's title area doesn't expand if th

2019-07-03 23:02发布

This is very similar to the issue mentioned here, which mostly fixed my problem.

However, if you are setting the title from a fragment that does not contribute to the options menu, then the title area won't expand. This can cause an ellipsis if the initial title was very small, even though there may be plenty of room in the action bar for it.

My guess is that if the fragment does contribute to the options menu then it causes that title area's width to be recalculated. Is there a way to force this to happen?

0条回答
登录 后发表回答