0

How can I only have one divider for the listview in Navigation Drawer? I tried using android:divider but that produces multiple lines! I only want a line after my 3rd item. How can I do that? (Sorry can't post image because of reputation)

Leonardo
  • 3,141
  • 3
  • 31
  • 60

1 Answers1

0

You can't by default. One way you can do it as a workaround is by adding a conditional to your getView method, check if the position is 2 (third item) and add the divider to it -- maybe as an additional layout.

Paulo Avelar
  • 2,140
  • 1
  • 17
  • 31