AppBarLayout,CoordinatorLayout常用属性
来源:互联网 发布:淘宝助理5.0旧版本 编辑:程序博客网 时间:2024/06/06 03:42
AppBarLayout:本质上是一个垂直的线性布局。但是他实现了材料设计中app bar的滚动手势的特性。而为了让这些特性发挥效果,你必须把AppBarLayout作为CoordinatorLayout的一个直接子控件来使用。并且,你还需要为AppBarLayout设置一个支持NestedScroll的兄弟控件。这样父控件CoordinateLayout就知道什么时候来响应滚动事件了 它的子控件可以通过setScrollFlags(int)或者app:layout_scrollFlags的方式来为自己指定滚动行为。可选的行为有:SCROLL_FLAG_ENTER_ALWAYS、SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED、SCROLL_FLAG_EXIT_UNTIL_COLLAPSED、SCROLL_FLAG_SCROLL、SCROLL_FLAG_SNAP。
CoordinateLayout:本质上是一个增强版的FrameLayout。一般作为一个容器来使用,这样可以让它的子控件实现一些交互效果。可以通过给子控件指定不同的Behaviors来实现不同的交互效果。
文/DamonZh(简书作者)
原文链接:http://www.jianshu.com/p/9aee8783feb2
著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。
CoordinateLayout:本质上是一个增强版的FrameLayout。一般作为一个容器来使用,这样可以让它的子控件实现一些交互效果。可以通过给子控件指定不同的Behaviors来实现不同的交互效果。
文/DamonZh(简书作者)
原文链接:http://www.jianshu.com/p/9aee8783feb2
著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。
0 0
- AppBarLayout,CoordinatorLayout常用属性
- CoordinatorLayout结合AppBarLayout的基本属性
- Android CoordinatorLayout + AppBarLayout
- CoordinatorLayout 之 AppBarLayout
- CoordinatorLayout结合AppBarLayout
- CollapsingToolbarLayout / AppBarLayout / CoordinatorLayout / FloatingActionB
- CoordinatorLayout+AppBarLayout的使用
- 初涉CoordinatorLayout,AppBarLayout,CollapsingToolbarLayout
- CoordinatorLayout,AppBarLayout, NestedScrollView
- CoordinatorLayout + AppBarLayout + ToolBar
- CoordinatorLayout + AppBarLayout+GridView
- CoordinatorLayout&AppBarLayout&CollapsingToolbarLayout组合
- AppBarLayout&CoordinatorLayout&Behavior
- Snackbar、CoordinatorLayout、CardView、AppBarLayout
- CoordinatorLayout+AppBarLayout+appbar_scrolling_view_behavior
- AppBarLayout、CoordinatorLayout、CollapsingToolbarLayout、NestedScrollView
- CoordinatorLayout+AppBarLayout实现联动
- CoordinatorLayout +AppBarLayout(续)
- 单片机时钟周期、机器周期、指令周期的区别
- 遍历一遍找出链表倒数第K个节点
- Reorder List的总结
- HDU Danganronpa
- JamVM移植问题2
- AppBarLayout,CoordinatorLayout常用属性
- Android UI(ActionBar+Toolbar)详解
- 大数相除 /大数相乘 大数相除是低精度
- 【Objective-C】07-自定义构造方法和description方法
- 4Sum_Leetcode_#18
- MyEclipse设置
- 响应式设计媒体查询尺寸分界点一览表
- 解决NestedScrollView嵌套RecycleView的bug
- 图论模板-最小生成树