'Include the XUI library and put Private xui as XUI in Processs_Globals
Private et As EditText 'If created with designer you will have this in Globals
et.Initialize("") 'If created with designer you don't need this
et.Padding = Array As Int(10dip,0,0,0)
Dim etx As B4XView = et
etx.SetColorAndBorder(xui.Color_Blue, 1dip, xui.Color_Black, 5dip)
etx.SetTextAlignment("CENTER", "LEFT") 'this is default
etx.Font = xui.CreateDefaultFont(20)
etx.TextColor = xui.Color_White
etx.Text = "WOW"
'If created with designer, you don't need this
Root.AddView(etx, 300dip, 50dip, 200dip, 50dip) 'if B4XPages
' Activity.AddView(etx, 300dip, 50dip, 200dip, 50dip) 'otherwise