Android Question Hide soft keyboard automatically with loss of focus

bridge1

Member
Soft Keyboard
In B4a is it necessary to manage for each edittext to hide the keyboard when the input is finished?
Using the methods (IME.HideKeyboard) or (Phone.HideKeyboard (Activity))

If we set objects NOT of type EditText, and we set them as Focusable with methods
setFocusable (Boolean)
setFocusableInTouchMode (Boolean)

why does the keyboard NOT hide itself automatically?

Thanks.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
n B4a is it necessary to manage for each edittext to hide the keyboard when the input is finished?
No.

The keyboard will hide automatically when the user clicks on the Done button. You can force it to show a done button by checking the Force Done option in the designer.

Tip: if you want the user to fill multiple fields then use B4XPreferencesDialog.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…