Detailed explanation of Android refresh loading framework
•
Android
This example shares the specific code of Android refresh loading framework for your reference. The specific contents are as follows
1. Define an interface to control pull-down and pull-up
2. Define a refresh load layout
3. Customize view listview
GridView
RecyclerView
ExpandableListView
ScrollView
WebView
ImageView
TextView
4. Usage example (take listview as an example)
head
foot
4. Attention
There is no difference between the use of custom views and normal views. To realize refresh loading, you must make ptrl.setonrefreshlistener (pulltorrefreshlayout. Onrefreshlistener onrefreshlistener);
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码