a custom pull-to-refresh layout which contains a interesting animation
Switch branches/tags
Nothing to show
Clone or download
Latest commit 92a27db Jul 20, 2015
Permalink
Failed to load latest commit information.
.idea inital commit Jul 20, 2015
app add gifs and readme.md Jul 20, 2015
circlerefresh add gifs and readme.md Jul 20, 2015
gif change the gif pic Jul 20, 2015
gradle/wrapper inital commit Jul 20, 2015
.gitignore inital commit Jul 20, 2015
CircleRefreshLayout.iml inital commit Jul 20, 2015
README.md modify readme.md Jul 20, 2015
build.gradle inital commit Jul 20, 2015
gradle.properties inital commit Jul 20, 2015
gradlew inital commit Jul 20, 2015
gradlew.bat inital commit Jul 20, 2015
settings.gradle inital commit Jul 20, 2015

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