CoordinatorLayout(嵌套AppBarLayout)的app:layout_scrollFlags属性的几种设置
来源:互联网 发布:内控管理系统源码 编辑:程序博客网 时间:2024/06/13 12:56
参考:http://blog.csdn.net/zhangyalong_android/article/details/53112647
1.scroll:值设为scroll
的View会跟随滚动事件一起发生移动;
所有想滚动出屏幕的view都需要设置这个flag,没有设置这个flag的view将被固定在屏幕顶部。
2.enterAlways:值设为enterAlways
的View,当ScrollView往下滚动时,该View会直接往下滚动,而不用考虑ScrollView是否在滚动;
这个flag让任意向下的滚动都会导致该view变为可见,如启用快速“返回模式”。
3.exitUntilCollapsed:值设为exitUntilCollapsed
的View,当这个View要往上逐渐“消逝”时,会一直往上滑动,直到剩下的的高度达到它的最小高度后,再响应ScrollView的内部滑动事件。
4.enterAlwaysCollapsed:是enterAlways
的附加选项,一般跟enterAlways
一起使用,它是指,View在往下“出现”的时候,首先是enterAlways
效果,当View的高度达到最小高度时(注意你的view需要设置minHeight属性),View就暂时不去往下滚动,直到ScrollView滑动到顶部不再滑动时,View再继续往下滑动,直到滑到View的顶部结束。
需要注意的是,后面两种模式基本只有在CollapsingToolbarLayout才有用。
0 0
- CoordinatorLayout(嵌套AppBarLayout)的app:layout_scrollFlags属性的几种设置
- CoordinatorLayout嵌套AppBarLayout的使用
- CoordinatorLayout的layout_scrollFlags
- CoordinatorLayout与AppBarLayout嵌套使用的注意事项
- CoordinatorLayout结合AppBarLayout的基本属性
- CoordinatorLayout+AppBarLayout的使用
- CoordinatorLayout+AppBarLayout+CollapsingToolbarLayout+Toolbar实现app的折叠效果
- coordinatorLayout 和AppBarLayout的踩坑记
- CoordinatorLayout的AppBarLayout和CollapsingToolbarLayout
- AppBarLayout,CoordinatorLayout常用属性
- 解决SpringView与CoordinatorLayout和AppBarLayout嵌套使用的上下滑动冲突问题
- AppBarLayout,NavigationView,CoordinatorLayout,CollapsingToolbarLayout的使用
- CoordinatorLayout、AppBarLayout、TableLayout、CollapsingToolbarLayout、NestedScrollView的使用
- recyclerview,AppBarLayout,Toolbar,CoordinatorLayout 的结合使用~
- UI之CoordinatorLayout、AppbarLayout、CollapsingToolbarLayout的使用
- CoordinatorLayout+AppBarLayout+RecyclerView+ViewPager打造可上下左右滑动的App主框架
- 尴尬的app:layout_scrollFlags="scroll|enterAlways" 配合NavigationDrawer
- 5CoordinatorLayout与AppBarLayout--嵌套滑动
- Android Studio导入github下载的工程
- fun函数声明的一些问题和编写函数的一个问题
- java提高篇(八)-----强制类型转换
- CentOS安装jdk的三种方法
- 彻底解决$ is not define,不止是顺序问题
- CoordinatorLayout(嵌套AppBarLayout)的app:layout_scrollFlags属性的几种设置
- <!DOCTYPE>声明
- 前端布局、颜色
- 【Spring实战】----开篇(包含系列目录链接)
- NewStringUTF报红!
- C++学习笔记三——内联、宏和引用变量
- 用户画像初探-Sogou用户画像比赛
- 第十周项目3-利用二叉树便利思想解决问题
- http请求头If-Modified-Since & If-None-Match