路时得到通知软键盘是显示/隐藏? [英] Way to be notified when the software keyboard is showing/hiding?

查看:115
本文介绍了路时得到通知软键盘是显示/隐藏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法当键盘即将展现,或表现出被通知?下面的事件将是巨大的:

Is there a way to be notified when the keyboard is about to show, or has shown? The following events would be great:

keyboardWillShow keyboardDidShow keyboardWillHide keyboardDidHide

keyboardWillShow keyboardDidShow keyboardWillHide keyboardDidHide

推荐答案

的唯一方法是重写查看 onSizeChanged()方法。看到这个线程在Android Developers组:

The only way is to override the View's onSizeChanged() method. See this thread on the Android Developers group:

http://groups.google.com/group/android-developers/browse_thread/thread/9d1681a01f05e782

这篇关于路时得到通知软键盘是显示/隐藏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆