我有一個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
這必須是可能以某種方式做。也許覆蓋視圖不是解決這個問題的正確方法?任何指針?