I\'m trying to move button (with animation) upon click. I want it to move 100 pixels to the bottom on first click, 100 pixels up on second, 100 pixels to the bottom on third
There is an easier way worth mentioning. One can use the View.animate() method which also moves the clickable elements:
v.animate().translationY(100).start(); // move away v.animate().translationY(0).start(); // move back