djpero Member Licensed User Longtime User Nov 13, 2012 #1 which is best medthod to get proporcional text size on all screens? I'm develop on HTC One X, text is much smaller on small screen devices, is not proporcional.
which is best medthod to get proporcional text size on all screens? I'm develop on HTC One X, text is much smaller on small screen devices, is not proporcional.
Erel B4X founder Staff member Licensed User Longtime User Nov 13, 2012 #2 You should use AutoScaleAll in the designer script. Upvote 0
djpero Member Licensed User Longtime User Nov 13, 2012 #3 Honestly, I am trying to avoid Designer script, and put them all in code. Does there exist a possibility to do it within the code? Upvote 0
Honestly, I am trying to avoid Designer script, and put them all in code. Does there exist a possibility to do it within the code?
Erel B4X founder Staff member Licensed User Longtime User Nov 13, 2012 #4 This keyword is only available in the designer script. Why do you avoid using designer script? Upvote 0
djpero Member Licensed User Longtime User Nov 14, 2012 #5 This is example with Designer Script. What am I doing wrong? This is how that look on 720x1280 HTC One x: Attachments rf1.png 72 KB · Views: 530 2012-11-14_10-41-04.jpg 39.4 KB · Views: 444 Upvote 0
This is example with Designer Script. What am I doing wrong? This is how that look on 720x1280 HTC One x:
Olaan Expert Licensed User Longtime User Nov 14, 2012 #6 djpero said: This is example with Designer Script. What am I doing wrong? This is how that look on 720x1280 HTC One x: Click to expand... Hi djpero, You must add this command before. AutoScaleRate=0.5 <= value between 0 - 1 Important! All of the layouts must use scale 320*480 or 480*320 Best regards Theera Upvote 0
djpero said: This is example with Designer Script. What am I doing wrong? This is how that look on 720x1280 HTC One x: Click to expand... Hi djpero, You must add this command before. AutoScaleRate=0.5 <= value between 0 - 1 Important! All of the layouts must use scale 320*480 or 480*320 Best regards Theera
djpero Member Licensed User Longtime User Nov 14, 2012 #7 Not helping so far. Panel is not stretched to the bottom of application with any value of autoscale rate. I think problem is ratio between 320x480 and HD 720x1280. Upvote 0
Not helping so far. Panel is not stretched to the bottom of application with any value of autoscale rate. I think problem is ratio between 320x480 and HD 720x1280.
klaus Expert Licensed User Longtime User Nov 14, 2012 #8 The problem is the Height/Width ratio. To strech the Panel you should set either Bottom = 100%y or SetTopAndBottom(0, 100%y) for portrait and Right = 100%x or SetLeftAndRight(0, 100%x) for landscape. Best regards. Upvote 0
The problem is the Height/Width ratio. To strech the Panel you should set either Bottom = 100%y or SetTopAndBottom(0, 100%y) for portrait and Right = 100%x or SetLeftAndRight(0, 100%x) for landscape. Best regards.
djpero Member Licensed User Longtime User Nov 14, 2012 #9 Yes... that is the solution....Klaus.... I using percents in adding view in code, and that's almost same at Designer script. Is textsize on views affected with autoscale? Last edited: Nov 14, 2012 Upvote 0
Yes... that is the solution....Klaus.... I using percents in adding view in code, and that's almost same at Designer script. Is textsize on views affected with autoscale?
Erel B4X founder Staff member Licensed User Longtime User Nov 14, 2012 #10 Is textsize on views affected with autoscale? Click to expand... Yes. Upvote 0