Hello Android developer,
We can detect soft keyboard by setting a OnGlobalLayoutListener.
When height of window changes we can do some calculation from that we know keyboard is visible or not. lot of discussion you can find here (link) this will work when we use windowSoftInputMode as adjustResize
In my scenario im using adjustPan as windowSoftInputMode for this, window size won't change when soft keyboard is visible. (Don't tell to change windowSoftInputMode to "adjustResize")
I know we can implement in Context.INPUT_METHOD_SERVICE with isAcceptingText but i can't implement this becasue i have lot of EditView in my app.
I know they dont have any Broadcast receiver for listening soft keyboard visiblity.
Is they any way we can achive/ detect soft keyboard visibility and hide/invisible
Please give your thoughts. Thanks in advance for your answer.