简体   繁体   中英

Keep an Item at the top of a list view

is there a way in android to make it so that an item or title type item sits at the top of the view of a list view? I want a section title to sit at the top of the visible part of the list view until the next one comes to the top and replaces it.

Check out the PinnedHeaderListView and the android-amazing-listview projects. They both provider ListViews with pinned header capabilities.

I suggest you use this library PinnedHeaderListView

github.com/mldeng/PinnedHeaderListView

This will definetely help you achieve exactly what you want.

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