After Google introduced Material Design, I have heard about a new widget class called Toolbar.
What is the Toolbar, and what is the exact difference between ActionBar and ToolBar?
After Google introduced Material Design, I have heard about a new widget class called Toolbar.
What is the Toolbar, and what is the exact difference between ActionBar and ToolBar?
I found a good explanation from Android Developers Blog post.
Yes, we, Android developers, needed more control over
ActionBar
, right? AndToolbar
is just for it.In other words, the
ActionBar
now became a special kind ofToolbar
. This is an excerpt from Google's official Material Design spec document.More details like how to use
Toolbar
as anActionBar
are included in above blog post.