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 ...")