Thursday 15 May 2014

draw - Touch move Android not smooth -


I have used this code: On Create:

  imageView.setOnTouchListener (( OnTouchListener));   

And on-touch:

  Case motion event. Action_ MOVE: canvas drainline (old X, old, event .getX), event. Gateway (), paint); ImageView.invalidate ();   

If there are only one image view in the layout, make it very smooth but I add the view (button, image background) to 2 or more, the action gradually acquires the event And does not pull smooth. Please help me!

Please refer to the Draw Circle to start and end, or use the basis of two lines interval On

No comments:

Post a Comment