GithubHelp home page GithubHelp logo

behavior's Introduction

DslBehavior

本库实现自CoordinatorLayoutBehavior.

使用此库时,请务必使用库中RCoordinatorLayout当做根布局, 而非系统的CoordinatorLayout.

库只做行为Behavior相关的协调, 不处理View相关的操作.

View请尽量使用NestedScrollingChild

相关效果

demo场景:

  • 普通布局, 比如RCoordinatorLayout+RecyclerView或者RCoordinatorLayout+ViewGroup(+ViewGroup+(NestedScrollingChild)...)
  • 联动布局, 比如RCoordinatorLayout+背景放大Layout+头部RecyclerView+悬停TabLayout+底部ViewPager(VP内嵌套RecyclerView)
Demo效果列表 上下回弹
智能阴影线 联动中效果
标题栏渐变 联动中效果
下拉刷新 联动中效果
背景缩放 联动中效果

Gif效果

上下回弹 下拉刷新
智能提示线 标题栏渐变
背景放大 联动中效果
联动中标题栏渐变 酷安效果

使用文档

使用文档wiki

扫码下载体验

使用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)的大佬,等你来撩.

联系作者

点此QQ对话 该死的空格 点此快速加群

开源地址

behavior's People

Contributors

llcdj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.