android - Is there a way to tell if the soft-keyboard is shown? -


Is there any way to say whether the Softkeyboard is shown in any activity?

I tried InputMethodManager Manager = (InputMethodManager) getSystemService (getApplicationContext (.) INPUT_METHOD_SERVICE); Manager.isActive (v)

but isActive lies before the keyboard is shown for the first time only, but if KB appears and then dismissed ,

= "text" itemprop = "text" >

According to this

You can not be detected whether a soft keyboard has been shown or not, but you can learn indirectly that knowing the soft key board has shown that your View change shape.

Imagine that you have ListView and a EditText below, you

you ListView The subclass is required to be applied, then it has its list activation or activity or view .

  Public category threadwid list view [public threadview (reference reference T, AttributeSet attributeSet) {super (context, attribute set); } @ Ivoride Secure Zero Size Change (Int x New, Int y New, Int Xald, Int y Old) {Super. Onesized Change (X New, Y New, X Old, Y Old); If (yOld & gt; yNew) {setSelection ((ListAdapter) getAdapter ()). GetCount () - 1); }}}   

Hope this helps

PS "Check Configuration Confirmation" works only for Hand Keyboard

Comments