Android EditText, soft keyboard show/hide event?

前端 未结 7 1982
天涯浪人
天涯浪人 2020-11-29 03:43

Is it possible to catch the event that Soft Keyboard was shown or hidden for EditText?

7条回答
  •  悲哀的现实
    2020-11-29 04:37

    Many of Android developer like to alter the layout based on whether the virtual keyboard is shown or not.so for solution you can see Android: Detect softkeyboard open.and it is working for me and i think it is so usefull as well.

提交回复
热议问题