Android Question EditText Multiline + ForceDone

Gianni Sassanelli

Active Member
Licensed User
Longtime User
Hi
i don't use ForceDone property with MultiLine EditText.

Is possible to do this?

If i set SingleLine property to TRUE, Done button appear
If i set SingleLine property to FALSE Done button is not visible on keybord on screen


thank's
 

Semen Matusovskiy

Well-Known Member
Licensed User
Following enables Ok button for SingleLine = False. Meanwhile Ok-button replaces Enter-button and this is not good

B4X:
Dim jo As JavaObject  = edittextInstance
jo.RunMethod ("setImeOptions", Array (6))   ' IME_ACTION_DONE
jo.RunMethod ("setRawInputType", Array (1)) ' TYPE_CLASS_TEXT
 
Last edited:
Upvote 0
Top