Hi, i need to create app in which will user draw simple lines through onTouchEvent.
It had to be possible to save drawed image as bitmap.
At Graphics | Android Developers I read there are 2 ways to do it. But as i wrote with SurfaceView it is impossible to save it as bitmap.
But I don't know...
Hi, I'm trying to do easy app for draw on screen. I followed the tutorial on Graphics | Android Developers.
In my onTouchEvent method I have:
_canvas = holder.lockCanvas();
if (event.getAction() == MotionEvent.ACTION_DOWN) {
_path = new Path();
_path.moveTo(event.getX()...
Hi, I've got problem with using onTouch and onLongClick events together. My code looks like that:
SurfaceView sv = (SurfaceView)findViewById(...);
sv.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View v) {...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.