Wish Possibility to see exact view sizes in script mode of designer

corwin42

Expert
Licensed User
Longtime User
While working with designer scripts I often need the exact positions and sizes (in dip) of the views after the script has done its work.

So my wish is a new "Info" window in the designer which shows at least Top, Left, Height, Width of the current selected view. The additional properties like Right, Bottom etc. may be useful, too.
 

corwin42

Expert
Licensed User
Longtime User
The exact values will change between different devices.

That is exactly the effect I expect to see. I just want to check if my script works correctly and the views are positioned as I want on different devices.

If you need to test anything specific you can add a label and set its Text property:
B4X:
Label1.Text = Button1.Left & " x " & Button1.Top
Ok, this is a workaround that will be ok for some simple checks.
 

corwin42

Expert
Licensed User
Longtime User
Note that this "workaround" will work with the UI cloud as well.

Yes, but I'm interested in the right positions and not the look. The positions can be better checked in the abstract designer. There I can switch between the devices I want (and I even can define more devices in the AbstractLayouts.txt file).

As I said I just wanted to check if the positions of my views are correct after the script has run. Sometimes this is important for designing good looking Material Design apps so that you know that the app meets the guidelines.
 
Top