Felix Schütz
09/29/2021, 12:55 PMNavHost
)? Should I report an issue on the Google Issue Tracker instead?Ian Lake
09/29/2021, 1:02 PMjulioromano
09/29/2021, 1:14 PMIan Lake
09/30/2021, 5:25 AMAnimatedVisibility
will be way nicer than just a simple if statementIan Lake
09/30/2021, 5:26 AMnavController.visibleEntries
StateFlow: https://twitter.com/ianhlake/status/1443278698015170560Ian Lake
09/30/2021, 5:32 AMCREATED
) and you can use it to only run an animation when the NavController finishes its transition (the last entry's Lifecycle reaches the RESUMED
state)Felix Schütz
09/30/2021, 8:42 AMIan Lake
10/01/2021, 3:54 AMFelix Schütz
10/01/2021, 9:56 AMNavHost
need to be under the bottom bar and some over it (at least that's required to allow all kinds of animations). Using zIndex
in Scaffold
to put the body over the bottom bar did not work when I last tried it (maybe I did something wrong), but it works with a custom Scaffold
implementation, so that's a work around for a limited set of animations. Modifying zIndex
per destination had not effect when I last tried it (which is what I would expect).