SwipeToLoadLayout是一个可以帮助你实现下拉刷新和加载更多的Layout
理论上支持所有的View
- ListView & GridView
- RecyclerView(With all kinds of layoutManagers)
- WebView & ScrollView & Other Views
- Google SwipeRefreshLayout style
- JD.com Style
- Yalantis Phoenix Style
你也可以自定义自己喜欢的头部和尾部,插件试替换,非常简单哦!
- Step 1. 把 JitPack repository 添加到build.gradle文件中 repositories的末尾:
repositories {
maven { url "https://jitpack.io" }
}
- Step 2. 在你的app build.gradle 的 dependencies 中添加依赖
dependencies {
compile 'com.github.Aspsine:SwipeToLoadLayout:1.0.4'
}
- Step 3. 查看快速集成文档
- Google SwipeRefreshLayout
- liaohuqiu android-Ultra-Pull-To-Refresh
- Yalantis Phoenix
- Github: github.com/aspsine
- Email: [email protected]
- Linkedin: cn.linkedin.com/in/aspsine
Copyright 2015 Aspsine. All rights reserved.
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.