apk.fm / News / MAD Skills Navigation Series 2 Wrap Up!

MAD Skills Navigation Series 2 Wrap Up!

314
0_aMhXsBRVNVdLePMq.jpeg

Posted by Murat Yener

It’s a wrap!! We’ve simply completed the second collection of Navigation on MAD Abilities. On this collection, we re-visited Chet’s DonutTracker app and added an vital lacking function: the flexibility to trace espresso.

With new performance comes new tasks. Whereas we added espresso monitoring, we additionally improved the navigation expertise, carried out conditional navigation, modularized the app and at last discovered what’s altering with a number of again stack help.

Episode 1: NavigationUI

As new locations have been added to the app,we used NavigationUI to supply a greater navigation UI expertise. NavigationUI helped us robotically combine NavigationView and BottomNavigationView with the prevailing menu ids for locations. You possibly can try the video linked under or in the event you favor learn the article right here.

Episode 2: Conditional Navigation

We added espresso monitoring performance within the first episode however irrespective of whether or not customers disable or allow the espresso tracker, they may nonetheless navigate to the CoffeeList fragment. On this episode, we fastened that by including conditional navigation and directing our customers to select after they launch the app for the primary time.

You’ll find the identical content material in article type right here.

Episode 3: Nested Graphs and Embody

Within the third episode, we took a step again and arranged the navigation graph by utilizing nested graphs and utilizing the embody tag to import different graphs. Whereas protecting our challenge extra organized, this additionally allowed us to modularize the app and see how navigation works with modules. Take a look at the article or the video under.

Episode 4: Function Modules

Within the fourth episode, we took the app a step additional and transformed the espresso module to a function module. With this modification, the espresso monitoring function will solely be downloaded and put in for customers who enabled this function. Dynamic options allowed us to modularize the app to avoid wasting community and storage for the person. To study extra, try the video linked under or in the event you favor learn the article right here.

Episode 5: A number of Again Stacks

On this episode, we lined a extremely requested function, a number of again stack help for Navigation. To help a number of again stacks, all you could do is to replace your navigation and fragment dependencies. You possibly can observe a number of again stack conduct with NavigationView and BottomNavigationView immediately with none code change!

It’s also possible to discover the identical content material in article type right here.

Episode 6: Stay Q&A

Lastly, we wrapped up the second collection of Navigation with a dwell Q&A session the place we answered your questions. For those who missed the Q&A, be sure that to take a look at the recording under.

Pattern Apps

Donut and Espresso Tracker

The applying used for the primary 4 episodes within the collection is the DonutTracker app which Chet constructed throughout the first Navigation collection on MAD Abilities. You possibly can comply with the progress in every episode by testing the starter and resolution code from this repo.

Navigation Superior Pattern

This challenge is used to exhibit A number of again stack help in Navigation. Earlier than Navigation model 2.4.0-alpha01, this challenge supplied NavigationExtensions to imitate the a number of again stack conduct. You possibly can try the answer code with up to date dependencies and NavigationExtensions eliminated in this repo.

This brings an finish to the second Navigation collection however the MAD collection will proceed with one other thrilling subject! Be sure to keep tuned for extra Android MADness!





Source hyperlink

Take a comment