0

I have a listview with custom adapter and some elements inside. Then I added a header to this listView. The elements in the listView are separated by line and I would like to separate also with a line the header from the first element of the list.

Is that possible? If so, how can I do it.

Thank you very much.

Milos Cuculovic
  • 18,933
  • 50
  • 154
  • 263

1 Answers1

2

Brought up from comments:
Simply add one of these answers to the bottom of your header's layout: Android Drawing Separator/Divider Line in Layout?


I would lean towards the third answer with:

    style="?android:attr/listSeparatorTextViewStyle"

if you want to mimic the dividers that already exist.

Glad I could help!

Community
  • 1
  • 1
Sam
  • 85,827
  • 19
  • 179
  • 175