Android soft keyboard in a fullscreen Surface View

纵然是瞬间 提交于 2019-11-29 18:14:40
railwanderer

I found a solve :D https://stackoverflow.com/questions/33561137/soft-keyboard-not-receiving-touches-over-surfaceview

I did override onCreateInputConnection method on the CustomSurfaceView class, like in the posted link.

@Override
  public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
   InputConnection conn = super.onCreateInputConnection(outAttrs);
   outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_FULLSCREEN;
   return conn;
}

it works now, pls try it out, I will upload right away to see if it works on your device too.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!