[android-developers] How to animate the height of a view?

2014-06-19 Thread Sheng-Dean
Hello, I would like to animate the height of a View to make it look like it is expanding. My current implementation involves a custom Animation class that invokes getLayoutParams() and changes the height variable in the applyTransformation() method. It looks like this: @Override prote

Re: [android-developers] How to animate the height of a view?

2014-06-19 Thread Παύλος-Πέτρος Τουρνάρης
https://stackoverflow.com/questions/4946295/android-expand-collapse-animation On Thu, Jun 19, 2014 at 11:07 AM, Sheng-Dean wrote: > Hello, > > I would like to animate the height of a View to make it look like it is > expanding. > > My current implementation involves a custom Animation class t

Re: [android-developers] How to animate the height of a view?

2014-06-19 Thread Sheng-Dean
Thanks for your reply. However, the problem I am encountering is the required call to requestLayout(). Even when my view hierarchy is not complex, calling requestLayout() every time the animation needs to update causes many frames to drop and look very choppy. I am hoping to find a way to parti