Changes

Jump to: navigation, search

An Android Navigation Component Tutorial

13 bytes added, 19:40, 11 January 2019
Creating the Navigation Graph Resource File
After adding the navigation dependencies to the file, click on the Sync Now link to resynchronize the build configuration for the project.
== Creating Creating the Navigation Graph Resource File ==
With the navigation libraries added to the build configuration the navigation graph resource file can now be added to the project. As outlined in [[An Overview of the Android Jetpack Navigation Architecture Component]], this is an XML file that contains the fragments and activities through which the user will be able to navigate, together with the actions to perform the transitions and any data to be passed between destinations.
Within the Project tool window, locate the res folder (app -> res), right-click on it and select the New ->Android Resource File menu option:

Navigation menu