Hello,
I'm new to B4A and I'm trying to code a simple app.
I do not use the designer as I build a dynamic interface, thus I use AddView to create and attach views (buttons/lists,...)
I specified all coordinates as dip, ie : TopX=230dip, I tested on a galaxy tab and the layout was fine.
When I tryed it on my Xperia Z1 phone, it did not scale and some buttons where out of the screen.
After reading docs, I thought (But I'm clearly wrong) that using dip was the right way to make sure interfaces scales "magically"'.
Another related question, how can I retrieve the screen resolution in my code ?
Someone could point me on a link where this stuff is explained because right now I'm confused.
Thanks a lot for your help !
I'm new to B4A and I'm trying to code a simple app.
I do not use the designer as I build a dynamic interface, thus I use AddView to create and attach views (buttons/lists,...)
I specified all coordinates as dip, ie : TopX=230dip, I tested on a galaxy tab and the layout was fine.
When I tryed it on my Xperia Z1 phone, it did not scale and some buttons where out of the screen.
After reading docs, I thought (But I'm clearly wrong) that using dip was the right way to make sure interfaces scales "magically"'.
Another related question, how can I retrieve the screen resolution in my code ?
Someone could point me on a link where this stuff is explained because right now I'm confused.
Thanks a lot for your help !