问题描述
刚刚看了一下新的Android支持设计库的演示程序。它在 github上提供的克里斯·巴内斯。 Throught应用程序, CoordinatorLayout
被大量使用。此外,许多支持设计库类,如 FloatingActionButton
,小吃店的
, AppBarLayout
等表现不同的内部 CoordinatorLayout
。
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
.
可有人请阐明什么是 CoordinatorLayout
一些灯以及它是如何从其他的ViewGroup
S在Android的不同,或至少提供对学习 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
.
推荐答案
这是你所期待的。
从文档
的设计库引入了 CoordinatorLayout
,布局提供了孩子的意见之间的触摸事件控制的其他级别的东西很多,在设计的组件图书馆利用。的
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.
http://android-developers.blogspot.com/2015/05/a-design-support-library.html
在这个环节,你会看到所有的演示视频上面提到的观点。
in this link you will see the demo videos of all above mentioned views.
希望这会有所帮助:)
这篇关于什么是CoordinatorLayout?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!