Android more beautiful and powerful drop-down refresh control than Swiperefreshlayout: Android-materialrefreshlayout

Source: Internet
Author: User

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"> &lt, ..... 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.