草庐IT

touchDownPoint

全部标签

android - 安卓软键盘

我正在为android2.2及更高版本创建软键盘。一切都很好,但是当我输入得非常快时,有时我的ACTION_DOWN方法没有调用。被调用方法的实际流程应该是这样的1)motionEvent.ACTION_DOWN2)OnPress()3)motionEvent.ACTION_UP4)OnRelease()andrepeatsameorderfornextword.如果我以正常速度打字那么它工作正常但是如果我快速打字然后上面的方法执行顺序看起来像1)motionEvent.ACTION_DOWN2)OnPress()3)OnRelease()4)motionEvent.ACTION_UP