Bug? Gravity and Input_Type in EditText

enonod

Well-Known Member
Licensed User
Longtime User
This post has died without answer, but has been independently confirmed, so I presume now it is a bug.
http://www.b4x.com/forum/basic4android-updates-questions/27115-edittext-hint-gravity.html

This combination hides Hint Text. remove either line marked THIS to cure.
B4X:
Sub Globals
   Dim eName As EditText
End Sub

Sub Activity_Create(FirstTime As Boolean)
   eName.initialize("")
   Activity.AddView(eName,100,100,125,42)
   eName.InputType=eName.INPUT_TYPE_NONE 'THIS or
   eName.Hint="Enter Name"
   eName.Gravity=Gravity.CENTER       'THIS
End Sub
 

enonod

Well-Known Member
Licensed User
Longtime User
Sorry, I wrongly made an 'assumption' that it was B4A.
 
Top