Wish padding on views

sorex

Expert
Licensed User
Longtime User
I know but it would be handy if we could do it in the designer and that during compile
the above code gets added if the padding is not filled in with the defailt value (not 0;0;0;0 apparently)
 

stevel05

Expert
Licensed User
Longtime User
You can get the current padding values again using javaobject with

B4X:
LeftPadding = JO.Runmethod("getPaddingLeft",Null)

And:
getPaddingTop
getPaddingRight
getPaddingBottom
getPaddingStart
getPaddingEnd

although the documentation isn't clear on the differences between Start and Left and End and Right.
 

Dave O

Well-Known Member
Licensed User
Longtime User
I second the suggestion to add padding as a property in the designer. Would be easier (obviously) and much more discoverable.
 
Top