How do I add row separators to a listview? I have tried to use the following in the listview:
<telerikListView:ListViewLinearLayout HorizontalItemSpacing="0" VerticalItemSpacing="3" Orientation="Vertical" />
The issue with this is that you must have a dark background set on the Listview and every 3rd line separator is slightly larger than the others. How can I get a true separator between rows on Android and IOS with custom cells?
3 Answers, 1 is accepted
I believe that you need to use the style properties exposed by the RadListView control. There are three different styles applied to the items in three different states. You can try using the following code:
Where the listView namespace is defined like this:
I hope this information will fit your scenario. Do not hesitate to contact us again if you need any further information.
Pavel R. Pavlov
Thanks for your reply. I have implemented the lines but they don't appear at the bottom of the row. They seem to cut the row in half.
I am confused a little. The firs line of the provided code suggests that you are not using the RadListView component of the UI for Xamarin suite. The last row also suggests the same and this makes me think that your application does not utilize our UI component(s).
I also notice that the ItemTemplate set to that ListView is pretty heavy. I suggest simplifying it for debugging purposes. Also I can see there is a column defined with width set to 0. I cannot understand what its purpose is. Since you are the first one reporting issue regarding the different styles of the RadListView (suggesting you are using our UI component) I would ask you to simplify and debug the ItemTemplate. Make sure every binding and layout option property are correctly set and applied.
Pavel R. Pavlov