Android combat tutorial Chapter 43 pull-up loading and pull-down refresh

Listview pull-down refresh is very common. Many open source frameworks can achieve this effect. Of course, they can also implement it themselves. This case is based on xlistview.

Layout:

Code of the main activity:

The main functions have been completed in just a few lines of code, and the operation is as follows:

If you like, you can follow me. This column will update simple and interesting Android articles from time to time

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
分享
二维码
< <上一篇
下一篇>>