https://github.com/angcyo/dslbehavior
Android Behavior下拉刷新库,上下内嵌滚动控件联动Behavior库
https://github.com/angcyo/dslbehavior
android behavior dsl kotlin light pull-to-refresh
Last synced: 11 months ago
JSON representation
Android Behavior下拉刷新库,上下内嵌滚动控件联动Behavior库
- Host: GitHub
- URL: https://github.com/angcyo/dslbehavior
- Owner: angcyo
- License: mit
- Created: 2020-04-29T08:46:13.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-25T09:08:34.000Z (over 5 years ago)
- Last Synced: 2025-03-27T07:35:49.611Z (11 months ago)
- Topics: android, behavior, dsl, kotlin, light, pull-to-refresh
- Language: Kotlin
- Homepage:
- Size: 9.75 MB
- Stars: 38
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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效果
上下回弹 | 下拉刷新
---|---
 | 
智能提示线 | 标题栏渐变
---|---
 | 
背景放大 | 联动中效果
---|---
 | 
联动中标题栏渐变 | `酷安`效果
---|---
 | 
# 使用文档
[使用文档wiki](https://github.com/angcyo/DslBehavior/wiki)
## 扫码下载体验

# 使用`JitPack`的方式, 引入库.
## 根目录中的 `build.gradle`
```kotlin
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
## APP目录中的 `build.gradle`
```kotlin
dependencies {
implementation 'com.github.angcyo:DslBehavior:1.0.2'
}
```
---
**群内有`各(pian)种(ni)各(jin)样(qun)`的大佬,等你来撩.**
# 联系作者
[点此QQ对话](http://wpa.qq.com/msgrd?v=3&uin=664738095&site=qq&menu=yes) `该死的空格` [点此快速加群](https://shang.qq.com/wpa/qunwpa?idkey=cbcf9a42faf2fe730b51004d33ac70863617e6999fce7daf43231f3cf2997460)
[开源地址](https://github.com/angcyo/DslAdapter)

