7

Draw rubber band line with an ontouchevent

view full story
linux-howto

http://stackoverflow.com – Ok, I'm trying to make a program that utilizes a linedrawview. When the user starts a touch event(action DOWN), it gets the current x and y and stores them in variables. Then when the user drags their finger around, a line is drawn and animates in a rubber band way. Finally, when the user lets go (action UP), the line is created. I'm having a lot of trouble with this and would like some assistance. My code so far for LineDrawView.java: // Project: Java2LineDrawEx // File: LineDrawView.java // Date: 4/9/13 // Author: Joshua Lefelhocz (HowTos)