This is a drop-down refresh control that is more beautiful and powerful than swiperefreshlayout. It is easy to use and supports API level >= 8. I hope you can enjoy it.
Now let me talk about materialrefreshlayout of function
(1) It can be do like swiperefreshlayout Drop-down refresh Effect,this is a kind of intrusive drop-down refresh.
(2) However, there is some people who is not as like invasive drop-down refresh, so, it also have a non-invasive drop-down re Fresh function.
(3) If you feel too drab, we can add a background of the wave shape.
(4) If you want the waveform covering on content, the it can is done.
(5) If you like the most simple effect,you can see the image below.
(6) There is a lot of functions and you can see the source code ...
Usage
Add dependency.
Dependencies { 'com.cjj.materialrefeshlayout:library:1.0.0'}
Use the IT in your layout XML.
<com.cjj.MaterialRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"Xmlns:app="Http://schemas.android.com/apk/res-auto"Android:id="@+id/refresh"Android:layout_width="match_parent"Android:layout_height="match_parent"> <, ..... ListView or GridView or Recyclerview or ScrollView and more...></com.cjj.materialrefreshlayout>
Get instance and use it.
Materialrefreshlayout = (materialrefreshlayout) Findviewbyid (r.id ...); Materialrefreshlayout.setmaterialrefreshlistener (new Materialrefreshlistener () { @Override Public void Onrefresh (Final materialrefreshlayout materialrefreshlayout) { //refreshing ... } }//Materialrefreshlayout.finishrefresh ();
Project home: http://www.open-open.com/lib/view/home/1442240411977
Android more beautiful and powerful drop-down refresh control than Swiperefreshlayout: Android-materialrefreshlayout