Kotlin and Java two versions of the drop-down refresh framework, support any View, support customization of any header

Download

KRefreshLayout

gradle

The compile 'nominating. Refresh, refresh - kotlin: 1.3'Copy the code

maven

< the dependency > < groupId > nominating. Refresh < / groupId > < artifactId > refresh - kotlin < / artifactId > < version > 1.3 < / version > <type>pom</type> </dependency>Copy the code

Note: The Kotlin version currently requires downloading a plug-in or using AndroidStudio3.0+

JRefreshLayout

gradle

The compile 'nominating. Refresh, refresh - Java: 1.3'Copy the code

maven

< the dependency > < groupId > nominating. Refresh < / groupId > < artifactId > refresh - Java < / artifactId > < version > 1.3 < / version > <type>pom</type> </dependencyCopy the code

example

Download the DEMO











Usage

KRefreshLayou

Setting the Refresh Listener

RefreshLayout. SetKRefreshListener {refreshLayout. PostDelayed ({true / / here refers to refresh the success, In the header in the interface can complete receives the parameter refreshLayout. RefreshComplete (true)}, 2000)}Copy the code

See Demo for more information about loading

contact

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.
Copy the code