问题描述
在Google引入Material Design之后,我听说了一个名为工具栏"的新小部件类.
After Google introduced Material Design, I have heard about a new widget class called Toolbar.
什么是工具栏?ActionBar和ToolBar之间的确切区别是什么?
What is the Toolbar, and what is the exact difference between ActionBar and ToolBar?
推荐答案
我从 Android开发者博客文章.
是的,我们Android开发人员需要对ActionBar
进行更多控制,对吗?而Toolbar
就是它.
Yes, we, Android developers, needed more control over ActionBar
, right? And Toolbar
is just for it.
换句话说,ActionBar
现在变成了Toolbar
的一种特殊类型.本文摘录自 Google的官方材料设计规范文档.
In other words, the ActionBar
now became a special kind of Toolbar
. This is an excerpt from Google's official Material Design spec document.
上面的博客文章中提供了更多有关如何使用Toolbar
用作ActionBar
的详细信息.
More details like how to use Toolbar
as an ActionBar
are included in above blog post.
这篇关于操作栏和新推出的工具栏有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!