U unba1300 Guest Jan 19, 2014 #1 In Designer Scripts, when using AutoScaleAll, is it better to use percentages or dips for unanchored edges of Views?
In Designer Scripts, when using AutoScaleAll, is it better to use percentages or dips for unanchored edges of Views?
Erel B4X founder Staff member Licensed User Longtime User Jan 20, 2014 #2 It depends on the specific layout. Normally you should use dips. However if for example you want to add three buttons that fill the available width then you can do something like: B4X: Button1.SetLeftAndRight(0, 33%x) Button2.SetLeftAndRight(33%x, 67%x) Button3.SetLeftAndRight(67%x, 100%x) Upvote 0
It depends on the specific layout. Normally you should use dips. However if for example you want to add three buttons that fill the available width then you can do something like: B4X: Button1.SetLeftAndRight(0, 33%x) Button2.SetLeftAndRight(33%x, 67%x) Button3.SetLeftAndRight(67%x, 100%x)