samuel
08/14/2020, 12:50 AMdialog?.window?.decorView?.setOnTouchListener { view, motionEvent ->
activity?.dispatchTouchEvent(motionEvent)
false
}
to try to dispatch the touch event to the activity but it doesn’t work as i expected. Does anyone have an idea of how to approach this?zsperske
08/14/2020, 12:55 AMsamuel
08/14/2020, 1:01 AMIan Lake
08/14/2020, 3:06 AMFrameLayout
with the rest of your activity content below the "dialog") all within the same window.samuel
08/14/2020, 6:03 PMFLAG_NOT_TOUCH_MODAL,
FLAG_NOT_FOCUSABLE
FLAG_ALT_FOCUSABLE_IM
Ian Lake
08/14/2020, 6:11 PMsamuel
08/14/2020, 6:13 PMIan Lake
08/14/2020, 6:17 PMsamuel
08/14/2020, 6:22 PMFLAG_NOT_TOUCH_MODAL
would capture the events that are within the dialog window, the other flags prevent input focus (keyboard) from being consumed by the dialog (my goal) and also prevent it from drawing over the keyboardIan Lake
08/14/2020, 6:30 PM