Re: [android-developers] Re: How to draw or write a text like MS-Paint in android using onTouch Event?
http://www.agressar.in/?p=145# I have done based on this link only in MotionEvent.ACTION_MOVE. But i am not getting continuity when im moving my finger on a screen. I am getting like the dots after once i release my finger then lines or what i drew appears. Could anyone tell me kindly , what does mx1, mx2 and my1, my2 does here? And why they have initialized here ? On Tue, Feb 12, 2013 at 9:45 AM, skink psk...@gmail.com wrote: Meena Rengarajan wrote: no, i have not done anything in MotionEvent.ACTION_MOVE. But i wrote code only in ACTION_DOWN and ACTION_UP so why did you say: cite But, MotionEvent.ACTION_ MOVE is not working properly. /cite pskink -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: How to draw or write a text like MS-Paint in android using onTouch Event?
Meena Rengarajan wrote: http://www.agressar.in/?p=145# I have done based on this link only in MotionEvent.ACTION_MOVE. But i am not getting continuity when im moving my finger on a screen. I am getting like the dots after once i release my finger then lines or what i drew appears. Could anyone tell me kindly , what does mx1, mx2 and my1, my2 does here? And why they have initialized here ? so what exactly is your code doing in response to ACTION_MOVE event? pskink -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: How to draw or write a text like MS-Paint in android using onTouch Event?
ACTION_MOVE in my app - I could be able to draw but not visible when im drawing and while moving my finger on a screen . Once after i release my finger , i can be able to see what i drew on the screen completely. When i'm trying to draw with my mouse, continuity is not good . Appearing as dots when iam moving my finger on the screen. Once i released my finger what i drew it appears fine ! On Thu, Feb 14, 2013 at 2:11 AM, skink psk...@gmail.com wrote: Meena Rengarajan wrote: http://www.agressar.in/?p=145# I have done based on this link only in MotionEvent.ACTION_MOVE. But i am not getting continuity when im moving my finger on a screen. I am getting like the dots after once i release my finger then lines or what i drew appears. Could anyone tell me kindly , what does mx1, mx2 and my1, my2 does here? And why they have initialized here ? so what exactly is your code doing in response to ACTION_MOVE event? pskink -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: How to draw or write a text like MS-Paint in android using onTouch Event?
please anyone help me. I am trying from last week. Not yet i found a solution. Have tried many possible ways. On Thu, Feb 14, 2013 at 2:26 AM, Meena Rengarajan meenasoft...@gmail.comwrote: ACTION_MOVE in my app - I could be able to draw but not visible when im drawing and while moving my finger on a screen . Once after i release my finger , i can be able to see what i drew on the screen completely. When i'm trying to draw with my mouse, continuity is not good . Appearing as dots when iam moving my finger on the screen. Once i released my finger what i drew it appears fine ! On Thu, Feb 14, 2013 at 2:11 AM, skink psk...@gmail.com wrote: Meena Rengarajan wrote: http://www.agressar.in/?p=145# I have done based on this link only in MotionEvent.ACTION_MOVE. But i am not getting continuity when im moving my finger on a screen. I am getting like the dots after once i release my finger then lines or what i drew appears. Could anyone tell me kindly , what does mx1, mx2 and my1, my2 does here? And why they have initialized here ? so what exactly is your code doing in response to ACTION_MOVE event? pskink -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: How to draw or write a text like MS-Paint in android using onTouch Event?
Meena Rengarajan wrote: ACTION_MOVE in my app - I could be able to draw but not visible when im drawing and while moving my finger on a screen . Once after i release my finger , i can be able to see what i drew on the screen completely. When i'm trying to draw with my mouse, continuity is not good . Appearing as dots when iam moving my finger on the screen. Once i released my finger what i drew it appears fine ! did you try http://developer.android.com/reference/android/view/MotionEvent.html#getHistoricalX(int, int) and http://developer.android.com/reference/android/view/MotionEvent.html#getHistoricalY(int, int) pskink -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to draw or write a text like MS-Paint in android using onTouch Event?
Meena Rengarajan wrote: Any help/suggestions would be highly appreciated, thanks ! post the pseudo code of your onDraw and onTouchEvent, i really mean pseudo code, not zyllions lines of real code pskink -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to draw or write a text like MS-Paint in android using onTouch Event?
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 letterA 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: How to draw or write a text like MS-Paint in android using onTouch Event?
no, i have not done anything in MotionEvent.ACTION_MOVE. But i wrote code only in ACTION_DOWN and ACTION_UP On Tue, Feb 12, 2013 at 9:20 PM, bob b...@coolfone.comze.com wrote: 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=v65AUWyfjo0http://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 letterA 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: How to draw or write a text like MS-Paint in android using onTouch Event?
Meena Rengarajan wrote: no, i have not done anything in MotionEvent.ACTION_MOVE. But i wrote code only in ACTION_DOWN and ACTION_UP so why did you say: cite But, MotionEvent.ACTION_ MOVE is not working properly. /cite pskink -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.