Bug? 4.0 Beta: Layoutanimation does not work with CustomViews

corwin42

Expert
Licensed User
Longtime User
It depends on how the custom view is implemented. If it adds the new views to the base panel then it should be animated.

In other cases you can add a (transparent) panel and then add the custom view to the panel. It will then be animated.

Ok, works. Thank you.

It just makes it a bit more complicated to handle it in my code since I extend ViewWrapper. But overriding all methods which handle the layout (SetLayout, SetLayoutAnimated, Left, Width, Top, Height) and replace them with a custom version (that handles the extra panel when it is used) works well.
 
Top