GithubHelp home page GithubHelp logo

chenyeshen / krefreshlayout Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xiaoqiwen/krefreshlayout

0.0 1.0 0.0 11.9 MB

强大的下拉刷新库,定制任意Header。比官方SwipRefrehLayout处理更加友好(Kotlin、Java双版本)

License: Apache License 2.0

Kotlin 100.00%

krefreshlayout's Introduction

KRefreshLayout (JRefreshLayout)

kotlin和java两个版本的下拉刷新框架,支持任意View、支持定制任意header

DownloadVersion

KRefreshLayout

gradle

compile 'gorden.refresh:refresh-kotlin:1.3'

maven

<dependency>
  <groupId>gorden.refresh</groupId>
  <artifactId>refresh-kotlin</artifactId>
  <version>1.3</version>
  <type>pom</type>
</dependency>

注意:kotlin版本目前需要下载插件或者使用AndroidStudio3.0+

JRefreshLayout

gradle

compile 'gorden.refresh:refresh-java:1.3'

maven

<dependency>
  <groupId>gorden.refresh</groupId>
  <artifactId>refresh-java</artifactId>
  <version>1.3</version>
  <type>pom</type>
</dependency

example

DEMO下载





Usage

KRefreshLayou详细使用说明:

设置刷新监听

refreshLayout.setKRefreshListener {
    refreshLayout.postDelayed({
    //这里的true是指刷新成功,在header接口中complete能接收到这参数
    refreshLayout.refreshComplete(true)
    }, 2000)
}

关于加载更多

更多请参考Demo

联系方式

License

Copyright (C) 2017 XiaoQiWen

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

krefreshlayout's People

Contributors

gordenxiao avatar xiaoqiwen 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.