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: 214

Filed under:
|

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 Views will stay directly below the content, instead of having a blank space?

© Stack Overflow or respective owner

Related posts about android

Related posts about animation