项目
在 GitHub 查看
tuesda/CircleRefreshLayout
tuesda/CircleRefreshLayout has 1,758 GitHub stars and 358 forks. GitHot measured 0 stars in 24 hours, -2 in 7 days, and -3 in 15 days. Last checked 2026-11-24 10:14 UTC. Last push 2017-01-16.
实测星标增长
- 24小时
- 0
- 7天
- -2
- 15天
- -3
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
一个包含有趣动画的自定义下拉刷新布局
创作与媒体README.md
原文This is a project with custom pull-to-refresh layout which contains a interesting animation. And the animation is inspired by https://dribbble.com/shots/1797373-Pull-Down-To-Refresh made by Ramotion.
###Demo###
###Usage###
<com.tuesda.walker.circlerefresh.CircleRefreshLayout
xmlns:app="http://schemas.android.com/apk/res-auto"
app:AniBackColor="#ff8b90af"
app:AniForeColor="#ffffffff"
app:CircleSmaller="6"
android:id="@+id/refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:background="#ffffffff"
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"></ListView>
</com.tuesda.walker.circlerefresh.CircleRefreshLayout>
Call back when refresh starts and complete:
mRefreshLayout.setOnRefreshListener(
new CircleRefreshLayout.OnCircleRefreshListener() {
@Override
public void refreshing() {
// do something when refresh starts
}
@Override
public void completeRefresh() {
// do something when refresh complete
}
});
when refreshing is done(for example, the image loading completes), you can invoke:
mRefreshLayout.finishRefreshing();
###License### MIT
探索相关项目
加载中…