I want to make a drag and drop button. Drag it where you want it to do and it stays there. Below code only scales the button, doesn\'t change its position.
p
Maybe the answers should be improved, because this question is still very prominent when you google fot it.
Today there is a Framework which can be used for drag and drop. It was introduced with Android 4.
You can find a nice tutorial at Google developer page:
https://developer.android.com/guide/topics/ui/drag-drop.html