I have an Android application with some ImageButtons, just like icons.
I would like to know how I could implement a function to “shake” icons after user long-presses them. Like iPhone icons on edit mode, you know?
After editing, icons stop shaking.
Is it possible to do that in Android?
use this to start the shaking animation on your icons upon the long press event of your button
This snippet is taking from the android API Demo here http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/Animation1.html