Fragments have often been the controversial, and to some, the stuff of nightmares, with the inconsistency of lifecycle events, complex UI interaction, and unexpected behaviours making many Android developers suspicious of their usage.
But with the development and recent stable publication of the navigation library, it may be the right time to give them a chance. Giving Fragments a second chance is not something I’d ever thought I’d be saying, but it’s a fantastic opportunity to find a solution to sharing data across a single screen.
Explore with me as I walk you through my experience implementing the navigation library and safeargs, and how I used them to implement type safe argument bindings, and how you can utilise the once troubled framework type to your advantage.