Skip to content

Instantly share code, notes, and snippets.

I am exploring the Toolbar. I don't find a way to define android.support.v7.widget.Toolbar using XML completely. What I mean by this is that the toolbar components such as title, subtitle need to added through code but not using XML. Is there a way to add these components using XML? If not, why toolbar is designed like this?