Hello,
I'm loading a customlistview with several items in a For-Loop; since the loading takes an "uncomfortable" amount of time -seconds-, I was looking for a way to show an -animated- progress dialog.
Using doevents problem is (sort of) solved, but I've read advice against using doevents.
I've paginated the load to 25 items at a time, but it stills takes 2 seconds to load (in my note 3), so I'd still want to put some (animated) progress dialog to make a friendliest possible UI for users with slower devices.
I have a list of items to load into the customlistview, like this:
Any other tip for speeding up the load would be appreciated. For example; I've tried to disable the animation (from code) when the panel is added but I can't find where to change that.
Thank you very much!
I'm loading a customlistview with several items in a For-Loop; since the loading takes an "uncomfortable" amount of time -seconds-, I was looking for a way to show an -animated- progress dialog.
Using doevents problem is (sort of) solved, but I've read advice against using doevents.
I've paginated the load to 25 items at a time, but it stills takes 2 seconds to load (in my note 3), so I'd still want to put some (animated) progress dialog to make a friendliest possible UI for users with slower devices.
I have a list of items to load into the customlistview, like this:
B4X:
Dim P as panel
For Each M As myObject In MyList.Values
P.Initialize("")
P.Loadlayout("MyLayout")
.
.
.
(doing stuff with the panel)
.
.
.
MyCustomListView.Add(P, 2dip, M)
Next
Any other tip for speeding up the load would be appreciated. For example; I've tried to disable the animation (from code) when the panel is added but I can't find where to change that.
Thank you very much!