Dim cd As ColorDrawable
cd.Initialize(Colors.Red,0) 'you can use xui colors
Button1.Text="electro179"
Button1.Background = cd
Dim jo As JavaObject = Button1.Background
Dim x As Int=20dip
jo.RunMethod("setCornerRadii", Array(Array As Float(x, x, x, x, x, x, 0, 0))) '3 corners rounded
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.