Hello,
Is there a way to set edittext base properties like corner radius, border color, border width by code?
Maybe using reflector or something like?
Thank you
Thank you Mahares. This is only part of the solution. I still need to set border color and width.
I saw another post with a solution using java object to get the border witdth with jo.getfield("borderWidth"). I tried to change to setfield but somwthing was missing or wrong.
If you are looking for border and border color, the code referred to will do exactly that, without JavaObject or Reflector. Here is a more complete example with a picture of a button:
B4X:
Dim cd As ColorDrawable
cd.Initialize2(Colors.Red,10dip,5dip,Colors.Cyan)
btn.Background = cd
btn.Text="I am a button"
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.