using AutoCompleteEditText with suggested words

RobertJurado

Member
Licensed User
Longtime User
I am using the component AutoCompleteEditText, but I noticed that the "suggested words window" is not showing like when using a regular EditText, but only the words added to the SetItems. Is that a standard behavior or can it be activated?

Thanks a lot

Robert J.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The suggested words list is disabled by default.

You can enable it by setting the InputType property:
B4X:
Sub Activity_Create(FirstTime As Boolean)
   Dim act As AutoCompleteEditText
   act.Initialize("")
   act.SetItems(Array As String("aaa", "bbb"))
   act.InputType = act.INPUT_TYPE_TEXT
   Activity.AddView(act, 0, 0, 300dip, 100dip)
End Sub
 
Upvote 0
Top