Skip to content

Instantly share code, notes, and snippets.

@smiletolead
Created April 13, 2015 07:08
Show Gist options
  • Save smiletolead/b117c9cfcea82cbb46b5 to your computer and use it in GitHub Desktop.
Save smiletolead/b117c9cfcea82cbb46b5 to your computer and use it in GitHub Desktop.
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?
@smiletolead
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment