I have a quick question.
I try to revive a child view so that it disappears. This part is simple, but during the animation, the parent view does not change. How to make the size of the parent image change automatically during the animation?
Here is my current code:
AnimationSet set = new AnimationSet(true); Animation fade = new ScaleAnimation(1.f, 1.f, 1.f, 0); Animation fade2 = new AlphaAnimation(1, 0); set.addAnimation(fade); set.addAnimation(fade2); set.setDuration(2000); set.setFillAfter(true); bgColor.startAnimation(set);
bgColor is the kind that I am disappearing. Here is the final result: Result
You can see the space after the animation.
Any ideas?
Thanks in advance!
source share