If one did that then the button would not be square. Why calculate up the percentage height from the width when you already have the height from the percentage width ?
There are thousands of Android devices, with different screen sizes, resolutions and aspect ratios. A procentual setting without knowing the specific dpi (px) values doesn't make sense at all.
@TIMAI2@Anke That answer was for setting button hgt & wdth on scr initialize event. Btw max phones & tablets are mfgd following standard size parameters hgt 2x of width in portrait and when device is in landscape we can reverse it i.e. wdth 2x of hgt. If we want exact square for a2z android devices then the method provided in blocks is correct👍