Is it possible to animate AppBar navigationIcon ap...
# compose
i
Is it possible to animate AppBar navigationIcon appearance? I mean not only of navigationIcon anim in-out, but navigation title slide. I mean exactly smooth swithing between next AppBar states
a
I would put separate AppBars on each screen, so they would animate together with the content.
i
Do you mean transition animation for full screen?
a
Yeah, this is how I am doing it usually.
But if you really need separate animations for AppBars elements, the you need another solution.
i
I think that the best solution for what i am trying to do is to create custom app bar )
a
It depends on the UI design and architecture requirements. In all apps I worked on - the AppBar was always screens' implementation details. But if you have such a design requirement, to animate items of the AppBar individually, then you need a custom solution indeed.
If you need to animate items individually, then maybe
AnimatedVisibity
will help?
i
I am afraid that it doesn’t ) Maybe it could works for nav icon (I am new in compose and don’t sure), but as i understood from code below row with fixed size just appears if set and title move to right with no anim
a
Yeah, I meant if you will ever implement a custom app bar 😀