As The last ship sailed towards the distant horizon I sat there watching on a rock My mind slowly drifting away Forming into my... Dreamtale
Android touch dragging tail effect by drawPath
2017-11-06 / 1 min read

Recently I worked on an android keyboard app, encountered the need of gesture typing path drawing effect. Normalizely, by using drawing path of the records of ontouchevent postion would be ok, but we could do it better like below:

Let's get over the code:

  1. The main logical of drawing path tail is in class

  2. Then use the instance of PathTailHelper in any view class which would be drawn with the tail. In my project it was