You can do it with the designer by putting a panel inside a panel where the inner panel is anchored to all sides with distances matching the border width:
You can also add a border programmatically with:
B4X:
Private Sub SetBorder(v As View, BorderWidth As Int, BorderColor As Int)
v.Background.As(JavaObject).RunMethod("setStroke", Array(BorderWidth, BorderColor))
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.