I got a problem with Font-scaling using view-locations in terms of %X and %Y. I am using the method posted by dlfallen in his post posted here:
http://www.b4x.com/forum/52178-post1.html
My normal emulator-app is using 320-480 scale=1 (160dpi). I am trying to add visual support for Tablets in an easy way and the method shown by dlfallen in above post works very well as to the positioning of the views themselves but unfortunately the fonts will not scale correctly in the Samsung tablet-emulator (using 1280-800 scale=1 (160dpi).
In my code I set the layout as follows:
I attach 2 images where you can see that the fonts are not being resized on the tablet (or they remain very small on the tablet).
I was under the impression that fonts would also be scaled automatically or am I wrong? Should I be using dip instead of %X and %Y? In this regard, what is the difference in using dip and %X and %Y (if any)?
Many thanks in advance for your help.
http://www.b4x.com/forum/52178-post1.html
My normal emulator-app is using 320-480 scale=1 (160dpi). I am trying to add visual support for Tablets in an easy way and the method shown by dlfallen in above post works very well as to the positioning of the views themselves but unfortunately the fonts will not scale correctly in the Samsung tablet-emulator (using 1280-800 scale=1 (160dpi).
In my code I set the layout as follows:
B4X:
txtBoxIP.SetLayout(29.375%X,10%Y,70%X,8.54166666666667%Y)
'94-48-224-41
I attach 2 images where you can see that the fonts are not being resized on the tablet (or they remain very small on the tablet).
I was under the impression that fonts would also be scaled automatically or am I wrong? Should I be using dip instead of %X and %Y? In this regard, what is the difference in using dip and %X and %Y (if any)?
Many thanks in advance for your help.
Attachments
Last edited: