[android-developers] Re: onTouchEvent not called on every touch motion

2011-09-27 Thread loril...@gmail.com
Problem is not yet resolved :( I'm able to draw my bitmaps in a continuous path, but the rendering is very slow. I am taking history points of a motion event into account but these also do not give me all the points. I'm introducing more points if the distance between 2 history points is greater

[android-developers] Re: onTouchEvent not called on every touch motion

2011-09-19 Thread loril...@gmail.com
Historical data for motion events helped! Thank you Blake! On Sep 19, 9:05 am, loril...@gmail.com loril...@gmail.com wrote: Will it not just move the element as I move my finger on the screen. I want to draw the element at all positions where my finger has touched so that I can see a

[android-developers] Re: onTouchEvent not called on every touch motion

2011-09-18 Thread blake
If you look at the sample code in the Google documents you'll see that motion events have history. You'll need to use it to get a smooth trace -Blake Programming Android, FTW On Sep 18, 5:20 am, loril...@gmail.com loril...@gmail.com wrote: I want to let a user smoothly draw elements with his

Re: [android-developers] Re: onTouchEvent not called on every touch motion

2011-09-18 Thread Dianne Hackborn
You don't need the history to do smooth tracking. The history gives you all of the points between this in the last motion event... but when tracking you always want to show your object at the most recent reported position, so the history is irrelevant. The problem with the code is that it is

[android-developers] Re: onTouchEvent not called on every touch motion

2011-09-18 Thread loril...@gmail.com
Will it not just move the element as I move my finger on the screen. I want to draw the element at all positions where my finger has touched so that I can see a continuous drawing. Let me know if I have misunderstood. On Sep 19, 3:03 am, Dianne Hackborn hack...@android.com wrote: You don't need