When user clicked on the screen, I can draw image using Canvas.drawBitmap(). Then I wanna change its coordinates. But I can’t. I tried a lot of methods. Some tutorials on the internet gives drag and drop examples. But it wants the user to press longer time. I must be able to change its coordinates instantenously. How can I do that?
When user clicked on the screen, I can draw image using Canvas.drawBitmap(). Then I
Share
You have to draw the
Bitmapagain in those coordinates. Before you do so, useCanvas.drawColor(0, PorterDuff.Mode.CLEAR)to clear the screen.