1

Trying to make a canvas that works using MotionEvent.ACTION_MOVE. However after the thread is started horizontal lines draw correctly, but none of the other lines work or are sporadic. As soon as I release the event, the lines clear themselves.

[Edit] It was because the canvas was nested in a ScrollView.

RyanInBinary
  • 1,533
  • 3
  • 19
  • 47

1 Answers1

1

The only thing I can think of that "could" cause that is that you are placing the SurfaceView in a layout that's trying to scroll.

Please post your layout code for a better answer.

Mircea Nistor
  • 3,145
  • 1
  • 26
  • 32
  • That was exactly it! I had it wrapped inside of a scrollview... as soon as that portion was taken out, it worked perfectly! I had no idea something so small would cause such an odd behavior. Thank you!!!! – RyanInBinary Aug 04 '11 at 17:24