Android Question Activity loadlayout

postasat

Active Member
Licensed User
Longtime User
Hi,

how can I know when a layout is really loaded ?
Is there an event raised for activity.loadlayout ?
is it possible to wait till a layout is loaded ?

Thank you.
 

postasat

Active Member
Licensed User
Longtime User
I have an error in "Activity_resume" when I set a label.text (java.lang.RuntimeException: Object should first be initialized (Label).).
I think because layout it's still not loaded/ready.
So I would like to know when activity layout is loaded.
Thank you.
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
No, the reason is exactly another. For example, really you don't load a layout or you give another name for label.

Attach your code as zip.
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
Depends, what to name "ready".

For example, LoadLayout does not redraw the screen immediately. From one side - this is a good feature (prevents flickering). But sometimes it's necessary to show a form immediately and to start long process. In this case Screen (0) will be usefull.
Another sample - marquee labels. According my investigations jo.RunMethod ("setSelected", Array (True)) in modern API releases wants preceding Sleep (0).

Of course, all this is not relative to postasat question.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…