Hi, I wrote a two-part blog post about how to use ...
# compose
a
Hi, I wrote a two-part blog post about how to use the new navigation-compose library (still pre-alpha). First part is normal use cases, second part is about using it with bottom navigation (and also multiple nav graphs in each tab). Part 1: https://afzaln.com/intro-to-jetpack-compose-navigation/ Part 2: https://afzaln.com/multiple-navigation-graphs-with-jetpack-compose-navigation/
🙏🏽 5
👏 7
🔥 5
a
Ah, will do! Thanks for that! It is reflected in the latest snapshot builds.
👍🏽 1
j
a
Interesting, That might fix the bug with the back press! 🙂 ... edit: Maybe not. lol Updated the posts!
k
Hey, thank you for an excellent article, I'll be following the same to use bottom navigation with jetpack compose. Are there any issues you mentioned have been fixed recently? Also, if this is the way we'll be dealing with multiple screens, then what's the future of fragments now?
Are you planning to update the articles as the API changes?
a
Thank you! I'm glad it helped you. I haven't tried to update it for the latest changes yet. Hoping alpha-01 for compose-navigation drops on Wednesday. About fragments, I think you'll have to ask that from the Android team.
@Kshitij Patil I updated the sample code on github for the latest snapshot. I still saw the issues that I mentioned though. I feel like I should wait for the alpha version before reporting them though.
k
@Afzal Najam Yes, I was going trough the same. Seems like there are some performance benefits on using tabbed views this way (Single Activity with Composables vs Single Activity multiple fragments)