Make sure you add below attributes to the root element in your animation xml:
android:fillAfter="true"
android:fillEnabled="true"
More Related Contents:
- Android: Expand/collapse animation
- Android Left to Right slide animation
- Show and hide a View with a slide up/down animation
- How to make a smooth image rotation in Android?
- android animation is not finished in onAnimationEnd
- How to Animate Addition or Removal of Android ListView Rows
- How do I animate View.setVisibility(GONE)
- How to animate a path on an Android Canvas
- Starting Frame-By-Frame Animation
- Fragment transaction animation: slide in and slide out
- Android scale animation on view
- How can I add an animation to the activity finish()
- Android animation does not repeat
- Start Activity with an animation
- How to create an animated GIF from JPEGs in Android (development)
- Android: Using ObjectAnimator to translate a View with fractional values of the View’s dimension
- How to draw a circle with animation in android with circle size based on a value
- Change ViewPager animation duration when sliding programmatically
- How to stop an animation (cancel() does not work)
- Causing OutOfMemoryError in Frame by Frame Animation in Android
- Android — How to position View off-screen?
- Rotate View Hierarchy 90 degrees
- Can I change the Android startActivity() transition animation?
- How do I do something when an animation finishes?
- Detecting the scrolling direction in the adapter (up/down)
- Android animate drop down/up view proper
- Set default page for ViewPager in Android
- Button is not clickable after TranslateAnimation
- How to override the enter activity animation if it is stated by launcher
- Fragment standard transition not animating