Android Com.handmark.pulltorefresh Use Tips

Source: Internet
Author: User

Recently using Android Com.handmark.pulltorefresh encountered some minor problems and now summarize some:

For the collective use tutorial, see:

http://blog.csdn.net/harvic880925/article/details/17680305

http://blog.csdn.net/flybywind/article/details/8977734

1: Set single-sided refresh:

Mpullrefreshlistview.setmode (mode.pull_from_end);//Pull Down to refresh Mpullrefreshlistview.setmode (Mode.pull_from_start);// Pull up to refresh Mpullrefreshlistview.setmode (Mode.both);//flush at both ends

2: Modify prompt text:

The default hint text is not necessarily for you, you can modify it

  Pulltorefreshscrollview.getheaderlayout (). Setreleaselabel ("Modify the text at the time of the drop-down refresh release");   Pulltorefreshscrollview.getfooterlayout (). Setreleaselabel ("");
The specific header and footer are encapsulated within a class:

Com.handmark.pulltorefresh.library.internal. Loadinglayout This inside to write this specific text setting

Setpulllabel ("drop-down Refresh ...") Setrefreshinglabel ("Loading ...") setreleaselabel</span> ("Release refresh ...")




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.