I want to drag an image on the screen.
how can i do this?
In my case, the image is simply download from the URL and placed on an activity.
I just want to drag this.
Thanks in advance!!
You can do that with this -
@Override
public void onDraw(Canvas canvas)
{
canvas.drawColor(Color.BLACK);
canvas.drawBitmap(mBitmap, 10, 10, null);
}
And follow this tutorial. It can help you in step-by-step basis.
please download the default android drag and drop source code
please check this code
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With