I've tried it with the designer and it works properly.
Yes.
Best option is to use B4XView when you can:
Code:
Sub Globals
Private EditText1 As B4XView
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
EditText1.SetTextAlignment("CENTER", "RIGHT")
End Sub
Or:
Code:
EditText1.Gravity = Bit.Or(Gravity.CENTER_VERTICAL, Gravity.RIGHT)