Preferenceactivity & addEditText with inputType?

tunderin

Member
Licensed User
Longtime User
I'm doing a preferenceActivity screen in which I'm adding editTexts as in the code below.

I can't find anything in the forum or docs about how to refer to the added editText in order to set the inputType

Can anybody tell me what view name to use in place of "what?" in the code below?

Thanks in advance...



B4X:
Sub CreatePreferenceScreen
   screen.Initialize("something", "")
   
   Dim var As AHPreferenceCategory
   var.AddEditText("ID","User initials ","prefix for receipt numbers","MK","" )
   what?.InputType = what?.INPUT_TYPE_PHONE
   
End Sub
 
Top