Why do you say MotionEvent.ACTION_MOVE is not working properly? Are you redrawing after a move event? You probably need to call invalidate().
On Tuesday, February 12, 2013 12:34:28 AM UTC-6, Meena Rengarajan wrote: > > How to draw or write a text like MS-Paint in android using onTouch Event? > > I have tried alot, googled and as many possibilities coded on. No use. > please anyone help/suggest about this issue ! > > Can refer this Video - http://www.youtube.com/watch?v=v65AUWyfjo0 > > I have created a panel with the collection of different colors, > pencil, eraser and different shapes similar to MS-Paint. I could be able to > draw or write on a screen using Touch Event method. But when i draw > something on a screen (when i touch the screen), MotionEvent.ACTION_Down > method is calling. So it works fine. When i release my finger from the > screen, MotionEvent.ACTION_up method is calling and works fine. > > So, my problem is, like MS-PAINT i couldnt be able to see what i drew or > wrote before i releasing the finger on a screen. For an example, can refer > this video link- Using pencil. User can see when he dragged the shapes or > trying to draw a pencil. Also, in this link user draws using pencil and it > is visible without releasing a finger on the screen. > > But, when i draw something on the screen, once i released the finger only > it appears. > > What i need is, when user touch the screen itself if he/she moves the > finger on the screen, user must be able to see what they are trying to draw > or write on the screen. > > For an Example : If i try to write some word like "Apple" on a screen , i > am trying to put "A" . But when i write letter "A", it is invisible unless > i take my finger from the screen. Once if i released my finger from the > screen after i drew letter"A" then only the text or picture has been > appeared on a screen what i drew. > > So, I have done MotionEvent.ACTION_DOWN and MotionEVent.ACTION_UP. Its > work fine. > > But, MotionEvent.ACTION_MOVE is not working properly. > > Can you suggest me or any ideas ? > > Any help/suggestions would be highly appreciated, thanks ! > > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

