setSubtitleCentered

open fun setSubtitleCentered(subtitleCentered: Boolean)

Sets whether the subtitle text corresponding to the setSubtitle 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.