Android - Keyboard Not Appearing In Floating Window
I'm writing an application that uses the following code to draw an edittext on the screen over running applications: WindowManager.LayoutParams params = new WindowManager.LayoutPar
Solution 1:
My bad.. I realized if I remove the WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE it works fine.. silly mistake
Solution 2:
Use WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL
WindowManager.LayoutParams params = new WindowManager.LayoutParams(
WindowManager.LayoutParams.WRAP_CONTENT,
WindowManager.LayoutParams.WRAP_CONTENT,
WindowManager.LayoutParams.TYPE_PHONE,
WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL,
PixelFormat.TRANSLUCENT);
For more detail and example follow the link: https://github.com/atifmahmood29/overlays-floating-window-like-facebook-messenger
Solution 3:
i resolved this issue by using FLAG_NOT_FOCUSABLE
Solution 4:
Programatically:
editText.requestFocus();
Or through XML:
<EditText...><requestFocus /></EditText>
Post a Comment for "Android - Keyboard Not Appearing In Floating Window"