2

I'm aware of the option to remove all separators

View.ListView (separatorVisibility = SeparatorVisibility.None)

but is there an option to remove just the separator after the last item without building my own separators within the cells?

GregC
  • 7,737
  • 2
  • 53
  • 67
Einhorni
  • 79
  • 5
  • 1
    The best way to always do achieve this is use a box view to add a separator to your ListView, Then on your last item set the visibility flag to false. – FreakyAli Apr 09 '20 at 09:24
  • Im not sure, if thats the same thought i had in mind with 'building my own separators'. If theres no other option i'd use BoxViews with height 1 in every cell except the last. Is that what you mean? – Einhorni Apr 09 '20 at 12:30
  • Yes that's the easiest way to do that – FreakyAli Apr 09 '20 at 14:12
  • How could be the best way to know which is the last item? I added a bool property to my model called IsLastItem but personally I don't like this approach – Aaron Ramos Aug 03 '21 at 20:15
  • I just checked if itemindex = list.length-1 in the view – Einhorni Aug 05 '21 at 10:01

0 Answers0