The CustomListView has a problem when the number of items displayed does not fill its entire height. The separator color will fill the bottom of the CustomListView which makes it look horrible. Take a look at the "Before" image to see what I mean. The red separator color fills the bottom of the CustomListView where there are only 2 or 3 items in it.
I have solved the problem by shrinking the CustomListView height whenever there are not enough items in it to fill its entire height. Take a look at the "After" image and you will see the background (gradient background panel) will show through and the ugly red separator color is gone from the bottom! Of course when more items are added to the CustomListView it will gradually expand back to its original height.
I have kept the code module name the same because it can replace the existing CustomListView without any code changes.
If you find any problems with it, please let me know.
Enjoy!
I have solved the problem by shrinking the CustomListView height whenever there are not enough items in it to fill its entire height. Take a look at the "After" image and you will see the background (gradient background panel) will show through and the ugly red separator color is gone from the bottom! Of course when more items are added to the CustomListView it will gradually expand back to its original height.
I have kept the code module name the same because it can replace the existing CustomListView without any code changes.
If you find any problems with it, please let me know.
Enjoy!
Attachments
Last edited: