animation - How can I animate a view in Android and have it stay in the new position/size? -
I currently have a view in my Android app and the scene is playing a frame animation, I want to extend the scene to enhance when I apply a scale animation for it, and if the scale animation is complete, I want to keep this activity in the new shape of the remaining life cycle of the remaining activity. Unfortunately just when the scale-up animation is complete, the view is back in the original size. How can I do this to keep a new animated tranornation?
I'm using
myView.startAnimation (AnimationUtils.loadAnimation (mContext, R.anim.scaleUp150));
Thanks!
Make sure you add the attributes below to your root element in the animation xml :
Android: fillAfter = "true" Android: fillEnabled = "true"
Comments
Post a Comment