Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("1")
EditText1.Background = CreateCD(Colors.LightGray,5dip,3dip,Colors.Red)
Label1.Background = CreateCD(Colors.LightGray,5dip,3dip,Colors.Red)
Label2.Background = CreateCD(Colors.LightGray,5dip,3dip,Colors.Red)
End Sub
Sub CreateCD(color As Int,CornerRadius As Int, BorderWidth As Int, BorderColor As Int) As ColorDrawable
Dim c As ColorDrawable
c.Initialize2(color,CornerRadius,BorderWidth,BorderColor)
Return c
End Sub