mardi 31 mars 2015

how to detect if keyboard is showing or no?

I am showing and hiding the keyboard after certain events. Now i want to know how to detect from code if the keyboard is up/showing or no. I tried the following but none work?



InputMethodManager imm = (InputMethodManager)getActivity().getSystemService(
Context.INPUT_METHOD_SERVICE);
imm.isAcceptingText();
imm.isActive();

Aucun commentaire:

Enregistrer un commentaire