I have a DialogFragment that asking user to input a password. When user enter at most 4 digits, I want to shake the DialogFragment (just like MacOS login dialog does).
I try to shake it by starting an animation on DialogFragment.getView() but no effect.
How to implement it?
EDIT: Note that I am not looking for any animation XML file that shows/hides a fragment. What I want is HOW to play an animation on a DialogFragment that is already on the screen, and after animation playing done, the DialogFragment should still exist on screen.