https://kotlinlang.org logo
#compose
Title
# compose
a

Afzal Najam

10/19/2020, 1:52 PM
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

Afzal Najam

10/19/2020, 4:46 PM
Ah, will do! Thanks for that! It is reflected in the latest snapshot builds.
👍🏽 1
j

Javier

10/19/2020, 10:44 PM
a

Afzal Najam

10/20/2020, 12:12 AM
Interesting, That might fix the bug with the back press! 🙂 ... edit: Maybe not. lol Updated the posts!
k

Kshitij Patil

10/26/2020, 5:55 PM
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

Afzal Najam

10/26/2020, 6:53 PM
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

Kshitij Patil

10/27/2020, 6:57 AM
@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)
3 Views