Change Orientation Problem?

Malky

Active Member
Licensed User
Longtime User
Hi, I have an app with about 5 scrollviews and it seems although they have been created, every time I change orientation, I have to recreate them from scratch which causes delays in navigation?

It's bad enough trying to keep track of each one when moving back and forward, without having to recreate sometimes if the orientation changes.

Malky
 

Attachments

  • homerbg.zip
    15.2 KB · Views: 152

Malky

Active Member
Licensed User
Longtime User
The problem is in the latter scrollviews, the content can change anyway depending on the selection from the first?

The app works fine in Portrait view, it also works ok after a tilt on the first few which are pretty much static, but the others screw up when changing orientation and back?

Malky
 
Upvote 0

Malky

Active Member
Licensed User
Longtime User
Hi Erel, is there an example of Statemanager being used for something this extensive?

I had considered it before, but as I am using a DB anyway to store data, I have been using that, but I think the problem could be that the db is not initialised again after and orientation change.

Just seems very unresourcful having to recreate about 6 scrollviews every time the screen changes?

Cheers,

Malky
 
Upvote 0

Malky

Active Member
Licensed User
Longtime User
Cheers Erel, I may just regulate the view to portrait to save code and memory although I didn't want to go down that route.

I'll give it another try tonight to see if I can make it any quicker first.

Thanks for your valued input once again.

Malky
 
Upvote 0

Malky

Active Member
Licensed User
Longtime User
Maybe could I ask for one more piece of advice please?

When changing orientation and having to recreate scrollviews after an orientation change OR having to change the content if the previous list selection has changed, does it speed things up any if you clear/empty the scrollview contents?

At the moment I don't do that, but it does work?

Thanks,

Malky
 
Upvote 0

Malky

Active Member
Licensed User
Longtime User
Hi Erel, this custom list example looks really fast (although there are no images in it), I'll give it a try, but.... I also see you have a view already created in the designer.

My question is, would it be quicker to create the panel(s) in real time (I read on here somewhere that the pre-designed panel load time is slower), plus looking at it, I would assume I would be better having a separate panel for each CustomListView? Possibly 6!

Does this seem logical?

Cheers,

Malky
 
Upvote 0
Top