Android Question Find "Panel size is unknown. Layout may not be loaded correctly."

Blueforcer

Well-Known Member
Licensed User
Longtime User
We have a very huge project, and currently i noticed many log messages:
Panel size is unknown. Layout may not be loaded correctly.

Unfortunately I don't know where this comes from.
Is there a way to find out where this message is thrown?
Unfortunately the project is way too big to find out manually where the problem is.

thanks
 

Sagenut

Expert
Licensed User
Longtime User
You should get this when trying to load a layout on a panel without giving it a size with SetLayout before.
But sometimes layout size can be dynamic, so it can be normal to load the layout and then giving the panel the correct size checking the content.
If everything is working correctly I would not give it too much attention.
Anyway to solve this it should be enough to add a Panel.SetLayout with some dimensions before loading the layout.
Then probably you have already another SetLayout immediately after that will resize it correctly.
If instead your panels have a fixed and certain size, set it before loading layout.
 
Upvote 1
Top