Best way to handle orientation change

surfuric

Member
Licensed User
Longtime User
I have a scrollview with about 1000 panels in it based on the customScrollView by Klaus. It takes about 5 seconds to build it and that is OK the first time. But my problem happens during orientation change. The scrollview is built again, and the user must wait another 5 seconds for display. If they change back, again another 5 second wait. Very annoying. I have read the life cycle docs, but I must be missing something fundamental and need some help please.

When the orientation changes, how is the best way to handle this? I don't want the scrollview continually rebuilt each time.

Any help would be greatly appreciated!
 

surfuric

Member
Licensed User
Longtime User
Klaus, Thank you very much. Your suggestion cut my loading time to almost nothing! I am very grateful. It seems that everytime I learn some way of doing something, there appears a new and better solution. This is a great indication that B4A is continually updating and evolving.

Abner69, the StateManager Lib is definately something I need. Thanks for pointing it out!

(I have so much to learn.)
 
Upvote 0
Top