我有一个Android Wear应用程序,我在其中使用透明叠加视图来接收触摸事件。我需要能够接收屏幕上任何地方发生的所有触摸事件,并且能够看到它们的坐标。Android Wear Overlay通过触摸事件
所有的研究,我发现说我不能收到所有触摸事件,并将它们传递。但是,Wear Mini Launcher和Swipify都在做这样的事情。
这里是我看过:
- Android overlay to grab ALL touch, and pass them on?
- https://stackoverflow.com/questions/19356834/overlay-view-which-intercepts-some-events
- Android - Intercept and pass on all touch events
- Android : Multi touch and TYPE_SYSTEM_OVERLAY
- Creating a system overlay window (always on top)
- Getting the View that is receiving all the touch events
- Android Jelly Bean service that receives all touch events
- TYPE_SYSTEM_OVERLAY in ICS
- Overlay App that reacts only on some touch events
这必须是可能以某种方式做。也许覆盖视图不是解决这个问题的正确方法?任何指针?