A Surface view and a canvas to move Bitmap
- by John Apple Sim
I have a SurfaceView and I want the Bitmap Logo inside it in the canvas to be movable
What I'm doing wrong ?
static float x, y;
Bitmap logo;
SurfaceView ss = (SurfaceView) findViewById(R.id.svSS);
logo = BitmapFactory.decodeResource(getResources(), R.drawable.logo);
x = 40;
y = 415;
ss.setOnTouchListener(new…