narek adonts Well-Known Member Licensed User Longtime User Oct 7, 2015 #1 Hi, I am populating a tableview for exemple with 20 custom cells and it freeze the app. Is there a way to do it async to not block the main thread?
Hi, I am populating a tableview for exemple with 20 custom cells and it freeze the app. Is there a way to do it async to not block the main thread?
Erel B4X founder Staff member Licensed User Longtime User Oct 7, 2015 #2 Adding 20 items should be very quick. Are you loading large images? Upvote 0
narek adonts Well-Known Member Licensed User Longtime User Oct 7, 2015 #3 It is quick but I dont wont to freeze the UI. Sometimes I am adding more then 100 items and it freeze for a few seconds. Is there any routine to avoid the freezing? Maybe with CallSubDelayed? Upvote 0
It is quick but I dont wont to freeze the UI. Sometimes I am adding more then 100 items and it freeze for a few seconds. Is there any routine to avoid the freezing? Maybe with CallSubDelayed?
narek adonts Well-Known Member Licensed User Longtime User Oct 7, 2015 #4 I solved a part of the issue for loading the cells But the main issue is arraving when doing TableView.ReloadAll is there a way to reload the tableview without freezing? Upvote 0
I solved a part of the issue for loading the cells But the main issue is arraving when doing TableView.ReloadAll is there a way to reload the tableview without freezing?
Erel B4X founder Staff member Licensed User Longtime User Oct 7, 2015 #5 Avoid calling TableView.ReloadAll. Use ReloadSection instead: https://www.b4x.com/android/forum/threads/tableview-b4i-listview.50403/ Upvote 0
Avoid calling TableView.ReloadAll. Use ReloadSection instead: https://www.b4x.com/android/forum/threads/tableview-b4i-listview.50403/