Android Question AutoScale Views on a panel?

MrKim

Well-Known Member
Licensed User
Longtime User
No that I have had my rant.
https://www.b4x.com/android/forum/threads/layouts-and-display-size.95425/#post-602890

It is time to solve my problem. What I have is two panels with a LOT of Views on them. I need to size them based on the screen size. I would like to just size the panel and have routine that Autoscales all of the controls based once that is done.
I ran across this:
https://www.b4x.com/android/forum/threads/autoscale-code-module.23750/

But it is rather old. Will this handle this? Is there a better way?

Thanks in advance for your help.
 

MrKim

Well-Known Member
Licensed User
Longtime User
You should try Klaus's autoscale module. Remember that there is no magic involved. There is no simple way to "just size" all views.

The correct way to solve it is by using anchors and designer script.

I keep hacking away at it Erel:p. It is frustrating, I can just about always get 99% of what I need with almost no code, but the 1% takes LOTS of code. Always so near...yet so far.

I will give Klaus's module a try.

Thank you
 
Upvote 0
Top