Android scale animation on view
Here is a code snip to do exactly that. The ScaleAnimation constructor used here takes 8 args, 4 related to handling the X-scale which we don’t care about (1f, 1f, … Animation.RELATIVE_TO_SELF, 0f, …). The other 4 args are for the Y-scaling we do care about. startScale, endScale – In your case, you’d use 0f, 0.6f. Animation.RELATIVE_TO_SELF, 1f – … Read more