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



















