I have a DialogFragment with container for Fragments. I make FragmentTransaction on that container so the size of dialog is changing and I want it to smoothly adapt to new size.
As I know to handle things like this I should use in layout xml:
It enables LayoutTransition and you can see the results here:
gif - dialog size animation problem
It works well when size is increasing but problem appears when it has to decrease - before smooth animation the view skip to smaller size.
I already tried to change something in LayoutTransition setting (for example
enableTransitionType(LayoutTransition.CHANGING)) but it didn't help. I suspect that it can be not connected with LayoutTransition at all.
I also tried to animate layout size change by hand but then layout is redrawn on every frame so whole animation is laggy.
Does anyone know what can I do to fix that?