首页 » Andorid » 临时分类 » 正文

KRefreshLayout

KRefreshLayout (JRefreshLayout)

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

DownloadVersion

KRefreshLayout

gradle

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

maven


  gorden.refresh
  refresh-kotlin
  1.3
  pom

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

JRefreshLayout

gradle

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

maven


  gorden.refresh
  refresh-java
  1.3
  pom
</dependency

example

DEMO下载





Usage

KRefreshLayou详细使用说明: > RefreshHeader接口说明 > RefreshLayout开放Api > XML参数配置 > IOS边缘滚动效果实现 >* 微信刷新Header实现

设置刷新监听

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

关于加载更多

更多请参考Demo

联系方式

  • QQ: 354419188
  • Email: gordenxqw@gmail.com

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.
下载 (0)

发表评论