Android: show/hide a view using an animation

Set the attribute
android:animateLayoutChanges="true"
inside the parent layout .

Put the view in a layout if its not and set android:animateLayoutChanges="true" for that layout.

NOTE: This works only from API Level 11+ (Android 3.0)

Leave a Comment