(Android application source code Android rewrites listview to realize pull-down refresh
Recently, there is a need for pull-down refresh in the project, so I found some open source materials to study. I see that there are many implementation methods on the Internet. Some inherit LinearLayout, some rewrite Scrollview, and some rewrite GridView. I watch the most. The most important thing is to rewrite listview. There is no right or wrong implementation. The key depends on the design requirements.
Here, we still use the most commonly used listview to implement the pull-down refresh operation.
Let's look at the code below)