‫Hello my friends.
‫In this video we will learn about the navigation graph.
‫But first I will add the data binding library.
‫So I will use the build features.
‫And here I will enable the data binding.
‫Equal to true.
‫Let's sing the project.
‫I need to move it to here inside Android.
‫Try again.
‫Inside the Android Curly braces.
‫Okay.
‫And everything is working fine.
‫Now, just to remind you and take note about the navigation graph and what it is.
‫In navigation graph is a new resource type that defines all the possible paths a user can take through
‫an app.
‫It shows visually all the destinations that can be reached from a given destination.
‫Android studio displays the graph in its navigation drawer.
‫So in order to create the navigation graph, we go to the resources folder and we click on new Android
‫Resource.
‫File.
‫And here I will name it as NAV.
‫Graph.
‫And the resource type, I will name it and I will give it a navigation resource type.
‫So whenever you add the navigation dependency, you can add this resource type.
‫Click.
‫Okay.
‫And here we go.
‫This is our nav underscore graph and you can see that it is an XML file.
‫And as we learned before, you can go to the code, you can go to split mode and because it's an XML
‫file.
‫So here is the code that will start with the navigation tag.
‫So congratulations guys.
‫We've created our first nav graph.