I am having a performance issue with an app that is using the CustomListView. I am not certain if it's the SQLite database slowing it down or just building the CustomListView.
I have only two labels being populated with text and a button on each list item. Normally it takes just a second to load up but when there are more than a hundred items or so it slows down. In my example I have almost 300 items and it takes about 5 seconds to finally load and show the CustomListView. I've tried adding an index to the SQLite table but that didn't appear to have any affect. What would be the best recommendation for getting subsecond load up? I've thought about putting the data as a List in memory or somehow just updating the background color of the list item and moving it to the bottom, not sure how to do that though.
As a side note - the app has a scan function that when an item is scanned that list item moves to the bottom when it refreshes the list view. Because they can scan quickly I need to have it available immediately. They need the scanned items in the list to move out of the way.
I have only two labels being populated with text and a button on each list item. Normally it takes just a second to load up but when there are more than a hundred items or so it slows down. In my example I have almost 300 items and it takes about 5 seconds to finally load and show the CustomListView. I've tried adding an index to the SQLite table but that didn't appear to have any affect. What would be the best recommendation for getting subsecond load up? I've thought about putting the data as a List in memory or somehow just updating the background color of the list item and moving it to the bottom, not sure how to do that though.
As a side note - the app has a scan function that when an item is scanned that list item moves to the bottom when it refreshes the list view. Because they can scan quickly I need to have it available immediately. They need the scanned items in the list to move out of the way.