A highly customizable pull refresh layout library for Android
for more information please see the website
Download the latest AAR from [Maven Central][2] or grab via Gradle:
implementation 'com.github.winsonzhou:pullrefreshlayout:1.2.2'
or Maven:
<dependency>
<groupId>com.github.winsonzhou</groupId>
<artifactId>pullrefreshlayout</artifactId>
<version>1.2.2</version>
<type>pom</type>
</dependency>
you can only use like this
<com.winson.widget.pullrefreshlayout.PullRefreshLayout
android:id="@+id/pull_refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.winson.widget.pullrefreshlayout.PullRefreshHeadLayout
android:layout_width="match_parent"
android:layout_height="200dp"
android:background="@color/colorAccent"
android:orientation="vertical">
</com.winson.widget.pullrefreshlayout.PullRefreshHeadLayout>
<com.winson.widget.pullrefreshlayout.PullRefreshListView
android:id="@+id/list_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</com.winson.widget.pullrefreshlayout.PullRefreshLayout>