Android Question Issue hiding keyboard

Computersmith64

Well-Known Member
Licensed User
Longtime User
I feel pretty dumb posting this because I've used the IME.HideKeyboard method zillions of times without any issue, but...

I am using a CustomLayoutDialog that loads a layout with 2 FLoatLabeledEditText views in it. When the dialog opens & I tap on one of the text views, the keyboard pops up, however when I tap on the Cancel or Save button on the dialog, the dialog disappears, but the keyboard doesn't.

I tried using the IME.HideKeyboard method & also the Phone.HideKeyboard(Activity) method to no avail - no matter what I did, I couldn't make the keyboard go away. In the end, I found that if I call the Panel.RemoveAllViews method of the CustomLayoutDialog, the keyboard goes away.

This seems like overkill, so is there something I'm missing with dialogs & hiding keyboards?

- Colin.
 

Computersmith64

Well-Known Member
Licensed User
Longtime User
Thanks Erel. It was the 50ms sleep that I was missing.

- Colin.
 
Upvote 0
Top