标签:#drawpath

Posts

· 2017-11-06 · * Android * drawpath *

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 PathTailHelper.java

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