I'm making an overlay by adding views directly to the window using WindowManager
. However, I can't seem to find flags necessary to do what chathead does, which is to have the overlay on top of the soft keyboard. My overlay always gets covered by keyboard when it pops up.
this is the params I am using for my views that are added to the window
private WindowManager.LayoutParams touchableParams = new WindowManager.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT,
WindowManager.LayoutParams.TYPE_PHONE,
WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED
| WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN,
PixelFormat.TRANSLUCENT);