Home DialogFragment size animation with LayoutTransition
Reply: 0

DialogFragment size animation with LayoutTransition

user994 Published in March 18, 2018, 5:10 pm

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?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.30148 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO