I have a paragraph of text and when a button is clicked I want that text to fade out, change to some other text, then fade back in. I have some code but it doesn\'t do the fade
If you want to use Animation
, you can use an AnimatorListener
to listen for when the first animation is done, and then start the second animation. That would be onAnimationEnd()
.
More information available here: http://developer.android.com/reference/android/animation/Animator.AnimatorListener.html
There might be a better way to do it with AnimationSet
, but this works for sure.