I’m starting out in android development, and I’ve been tackling the basics of a user interface, currently that means dragging and dropping images. I finally found a good example of that here for a textview, but I’d like to use it to drag around an imageview. What changes would I be required to make in order to have that occur? Thanks in advance for being patient with such a basic question.
Share
These two lines:
Just have to be changed to:
And
TextView _view;has to be changed toImageView _view;.A note, though… you should probably learn a bit about what the code does, and how to manipulate
Viewobjects in Android Java before getting too heavily into code like this.