Toolbar早在2014年伴随着Android 5.0 和 Material Design 发布了，不管是Actionbar、Toolbar，Material Design 中对之有一个统一的名称 Appbar。 那么对比Actionbar，看Toolbar有何不同之处：

#### 更易定制

In this rease,Android introduces a new Toolbar widget. This is a generalization of the Action Bar pattern that gives you much more control and flexibility. Toolbar is a view in your hierarchy just like any other, making it easier to interleave with the rest of your views, animate it, and react to scroll events. You can also set it as your Activity’s action bar, meaning that your standard options menu actions will be display within it.

#### 符合 Material Design 规范

Material Design 是一种良好的设计，越来越多的App 再做转变。

#### 使用方法

1.在Theme中隐藏Actionbar

2.在Activity Layout文件中加入Toolbar 如上（更易定制内容中所写）

3.在Activity中设置

Toolbar 的使用大致和 Actionbar 相同，这里不再介绍。