2

The solution of detecting keyboard shown in https://stackoverflow.com/a/4737265/3286489 is based on android:windowSoftInputMode="adjustResize". Is there anyway to detect Keyboard shown when using android:windowSoftInputMode="adjustPan"?

Community
  • 1
  • 1
Elye
  • 30,821
  • 26
  • 115
  • 272
  • http://stackoverflow.com/questions/4745988/how-do-i-detect-if-software-keyboard-is-visible-on-android-device – Ricardo A. Feb 16 '16 at 18:33
  • Those answers are still dependent on view resize. In adjustPan, I think the view is not resized. Hence such approach may not work. – Elye Feb 16 '16 at 21:58
  • See the accepted answer, there is no way to do this. You can do easily if you have a custom keyboard, but with the default soft keyboard the only way is verifying the view resize. – Ricardo A. Feb 17 '16 at 14:57
  • check my answer here: https://stackoverflow.com/questions/6918364/ – Shayan_Aryan Dec 29 '17 at 17:32
  • Possible duplicate of [How do I Detect if Software Keyboard is Visible on Android Device?](https://stackoverflow.com/questions/4745988/how-do-i-detect-if-software-keyboard-is-visible-on-android-device) – Ricardo A. Apr 26 '19 at 16:56

0 Answers0