问题描述
刚刚查看了新的 Android 支持设计库的演示应用程序.它由 Chris Banes 在 github 上提供.在整个应用程序中,CoordinatorLayout
被大量使用.此外,许多支持设计库类,例如 FloatingActionButton
、SnackBar
、AppBarLayout
等,在 CoordinatorLayout
中使用时的行为会有所不同.代码>.
有人可以解释一下什么是 CoordinatorLayout
以及它与 android 中的其他 ViewGroup
有何不同,或者至少提供学习 的正确途径CoordinatorLayout
.
这就是您要找的.p>
来自文档
设计库引入了 CoordinatorLayout
,这是一种布局,它提供了对子视图之间的触摸事件的额外控制,设计库中的许多组件都利用了这一点.
https://android-developers.googleblog.com/2015/05/android-design-support-library.html
在此链接中,您将看到上述所有视图的演示视频.
希望这有帮助:)
Just had a look at the demo app of new Android support design library. It's provided by Chris Banes on github. Throught the app, CoordinatorLayout
is used Heavily. Also, many of the support design library classes such as FloatingActionButton
, SnackBar
, AppBarLayout
etc. behaves differently when used inside CoordinatorLayout
.
Can someone please shed some lights on what is CoordinatorLayout
and how it is different from other ViewGroup
s in android, or at least provide correct path towards learning CoordinatorLayout
.
Here it is you are looking for.
from docs
the Design library introduces CoordinatorLayout
, a layout which provides an additional level of control over touch events between child views, something which many of the components in the Design library take advantage of.
https://android-developers.googleblog.com/2015/05/android-design-support-library.html
in this link you will see the demo videos of all above mentioned views.
hope this helps :)
这篇关于什么是协调器布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!