How do I detect if software keyboard is visible on Android Device or not?

前端 未结 30 2078
情书的邮戳
情书的邮戳 2020-11-22 10:59

Is there a way in Android to detect if the software (a.k.a. \"soft\") keyboard is visible on screen?

30条回答
  •  半阙折子戏
    2020-11-22 11:31

    I wrote sample.

    This repository can help to detect keyboard status without assumption that "keyboard should be more than X part of screen"

提交回复
热议问题