A anuj0sharma Member Licensed User Longtime User Apr 4, 2011 #1 how can i size the views in percentage of the screen resolution in designer. i want same application to scale down itself on 2 different devices. one has resolution 800x480 and 7" landscape second has resolution 320x480 and 3.2" portrait
how can i size the views in percentage of the screen resolution in designer. i want same application to scale down itself on 2 different devices. one has resolution 800x480 and 7" landscape second has resolution 320x480 and 3.2" portrait
Erel B4X founder Staff member Licensed User Longtime User Apr 5, 2011 #2 You cannot use %x and %y in the designer. Only in code. However the designed layout will scale automatically based on the dots per inch value (scale) of the specific device. I believe that the scale of both devices is 1.0 so it will not help here. You should create two layout variants. This tutorial explains this concept: http://www.b4x.com/forum/basic4andr...-number-visual-designer-events.html#post37967 Upvote 0
You cannot use %x and %y in the designer. Only in code. However the designed layout will scale automatically based on the dots per inch value (scale) of the specific device. I believe that the scale of both devices is 1.0 so it will not help here. You should create two layout variants. This tutorial explains this concept: http://www.b4x.com/forum/basic4andr...-number-visual-designer-events.html#post37967