Use listview to simulate wechat friends in Android

design sketch:

analysis:

1. Create listview

2. Create data

3. Create adapter

Put the data into the container that presents the data.

Connect this container (with data) to the adapter.

In fact, we directly return the connected view in the getview overloaded method of the adapter written by ourselves.    

4. Listview settings adapter

code:

Self created adapter

Encapsulation of contact data in the list

Container for storing data

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