You can override onTouch () and reposition the button according to the x position. and when you lift your finger, you can override onUp () (im not sure thats name the method) and create an animation that will return the button to its place. From your question, I realized that you can think of your button, which you can simply add from the list of buttons, well, it doesn’t. you need to manually create it.
roiberg
source share