Search code examples
androidandroid-source

How to Implement 'Show Touches' programmatically?


Android has a feature named 'Show Touches' in 'Settings->Developer Options', which enable showing a visual feedback for touch interactions. And I want to know how it works?


Solution

  • We can learn from PointerLocationView.java and PhoneWindowManager.java in AOSP which can implement the similar function.