you could do this by modifying the image. Make it twice as tall but have the bottom just be transparent.
A similar solution that only uses code:
Put the ImageView
into another view...call it imageHolderView
where imageHolderView
is twice as tall as the image, but it otherwise just transparent, and then shake that instead of just your image