views:

12

answers:

0

To make it simple.I have a LinearLayout containing some details. It is scaled down to a two pixel line. When I click on the title above the LinearLayout. I'd like it to expand to the size of its content. I tried the ScaleAnimation class and it wors except it needs a scale factor.

I'd like to be able to scale from 2pixel to realsize and from realsize to 2 pixel.

I tried to put a LinearLayout inside the Scaled LinearLayout. But the returned height is 0 as it probably only return the visible height.

Is there a way to calculate the real size of inner elements or a better way to do the expand animation. for JQuery users, this effect could be achieved with the slideDown animation.