DslBehavior
DslBehavior copied to clipboard
Android Behavior下拉刷新库,上下内嵌滚动控件联动Behavior库
DslBehavior
本库实现自CoordinatorLayout
的Behavior
.
使用此库时,请务必使用库中RCoordinatorLayout
当做根布局, 而非系统的CoordinatorLayout
.
库只做行为Behavior
相关的协调, 不处理View
相关的操作.
子
View
请尽量使用NestedScrollingChild
相关效果
demo场景:
- 普通布局, 比如
RCoordinatorLayout
+RecyclerView
或者RCoordinatorLayout
+ViewGroup(+ViewGroup+(NestedScrollingChild)...)
- 联动布局, 比如
RCoordinatorLayout
+背景放大Layout
+头部RecyclerView
+悬停TabLayout
+底部ViewPager(VP内嵌套RecyclerView)
Demo效果列表 | 上下回弹 |
---|---|
![]() |
![]() |
智能阴影线 | 联动中效果 |
---|---|
![]() |
![]() |
标题栏渐变 | 联动中效果 |
---|---|
![]() |
![]() |
下拉刷新 | 联动中效果 |
---|---|
![]() |
![]() |
背景缩放 | 联动中效果 |
---|---|
![]() |
![]() |
Gif效果
上下回弹 | 下拉刷新 |
---|---|
![]() |
![]() |
智能提示线 | 标题栏渐变 |
---|---|
![]() |
![]() |
背景放大 | 联动中效果 |
---|---|
![]() |
![]() |
联动中标题栏渐变 | 酷安 效果 |
---|---|
![]() |
![]() |
使用文档
扫码下载体验
使用JitPack
的方式, 引入库.
根目录中的 build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
APP目录中的 build.gradle
dependencies {
implementation 'com.github.angcyo:DslBehavior:1.0.2'
}
群内有各(pian)种(ni)各(jin)样(qun)
的大佬,等你来撩.