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?
We can learn from PointerLocationView.java
and PhoneWindowManager.java
in AOSP which can implement the similar function.