Search code examples
androidandroid-listviewdivider

Android ListView - divider that covers items


How to set divider in ListView to partialy cover items above and below?

Hm, more info: I have drawable with transparent background and I want that drawable to be drawn on divider's upper and lower item.

"-1" for not showing that I've made research? I did, there is info about setting dividerHeight, but it won't set divider to cover items. Finally I've found this site: http://android.cyrilmottier.com/?p=454 where is written that divider is drawn just after listViews' background, so can't be "on" items.

So my question is: Is there any workaround?


Solution

  • If I understand, maybe this will help you:

    https://github.com/emilsjolander/StickyListHeaders