B4X:
SearchTemplate.SetItems(Items)
I've used Spinner for a lot of elements, but Spinner doesn't have the convenience of searching like SearchTemplate. Is it possible to add search to Spinner somehow?
SearchTemplate.SetItems(Items)
Yes, I tested this on a mod release. Yes, you're right, 100ms is not enough. But visually it looks like the program freezes and then displays the list. If I load an array with more than 1000 elements, this time will increase to 1s on old devices.As DonManfred says, 100ms is pretty quick. Also, are you testing it in release mode?
This is a solution, but my list may change after the layout is loaded. It also does not solve the problem when I need to substitute different lists in the SearchTemplate during the program execution ...Don't call SetItems immediately before showing the list. Call it after the layout is loaded (add Sleep(100) in between).