netsuite_insights
netsuite_insights

Reputation: 462

How can I prevent my title text from getting misaligned?

When there's a back button in the Toolbar, the title text get centered in the remaining space which is useful in some cases. However, is there a way to disable this behavior? In my case, I'd like it to be centered absolutely relative to the entire Toolbar width so that the title is aligned with the subtitle. Currently, it looks like this which is ugly:

enter image description here

Upvotes: 2

Views: 51

Answers (1)

Shai Almog
Shai Almog

Reputation: 52770

This is a behavior in the Toolbar we should probably set to default but have some concerns about. Use toolbar.setTitleCentered(true).

Upvotes: 2

Related Questions