简体   繁体   中英

How to create a listview as iphone contact in android?

I really want to create a custom listview as Contacts of iPhone which contains many sub-listviews, each sub-listview has a title. When we scroll it, the title will be anchored at the top of parent-listview until all rows of sub-listview go over. is there any sample code for this?

在此处输入图片说明

在此处输入图片说明

The title is anchored at the top of listview (or scrollview) untill the image is scrolled over.

have a look at the android contacts app, there is this listview you meant ;)

Link to source code on CyanogenMod's GitHub

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM