corwin42 Expert Licensed User Longtime User Dec 7, 2014 #1 Maybe this is intentionally. If you have CustomViews in your Designer Layout they get not animated with the new LayoutAnimation feature.
Maybe this is intentionally. If you have CustomViews in your Designer Layout they get not animated with the new LayoutAnimation feature.
Erel B4X founder Staff member Licensed User Longtime User Dec 8, 2014 #2 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.
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.
corwin42 Expert Licensed User Longtime User Dec 8, 2014 #3 Erel said: 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. Click to expand... 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.
Erel said: 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. Click to expand... 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.