How do I animate View.setVisibility(GONE)
Posted
by MrSnowflake
on Stack Overflow
See other posts from Stack Overflow
or by MrSnowflake
Published on 2010-04-14T00:10:59Z
Indexed on
2010/04/14
21:53 UTC
Read the original article
Hit count: 225
I want to make an Animation
for when a View
gets it's visibility set to GONE
. Instead of just dissapearing, the View
should 'collapse'. I tried this with a ScaleAnimation
but then the View
is collapse, but the layout will only resize it's space after (or before) the Animation
stops (or starts).
How can I make the Animation
so that, while animating, the lower View
s will stay directly below the content, instead of having a blank space?
© Stack Overflow or respective owner