AppBarLayout和Toolbar有什么区别? [英] What is the difference between AppBarLayout vs Toolbar?
本文介绍了AppBarLayout和Toolbar有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的应用程序中包含 Toolbar
,但是设计支持库只是随 AppBarLayout
一起提供的,因此我只需要弄清区别和时间会使用一个.
I want to include Toolbar
in my app, but the design support library just came out with AppBarLayout
, so I just need clarification on what the difference is and when I would use one over the other.
推荐答案
AppBarLayout
用于实现各种滚动行为,例如折叠,伸缩空间和快速返回.
The AppBarLayout
is used to achieve various scrolling behaviors such as collapse, flex space, and quick return.
http://www.google.com/design/spec/pattern/scrolling-techniques.html
http://android-developers.blogspot.com/2015/05/android-design-support-library.html
这篇关于AppBarLayout和Toolbar有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文