Detecting touch events in overlay and passing them further
问题 I want to make an overlay gesture detector that will be displayed above all other apps. The overlay will be started from a Service . I've made sample service just to check if touch event from touching overlaid icon can be somehow recorded and dispatched further to currently active app: class GestureDetectorService : Service() { override fun onBind(intent: Intent?): IBinder? = null val windowManager: WindowManager get() = getSystemService(Context.WINDOW_SERVICE) as WindowManager var iv: