setTitleCentered

open fun setTitleCentered(titleCentered: Boolean)

Sets whether the title text corresponding to the setTitle method should be centered horizontally within the toolbar.

Note: it is not recommended to use centered titles in conjunction with a nested custom view, as there may be positioning and overlap issues.