Mastering android studio application setting up nav host controller tutorial 5

 

With these Video course lessons, you can create a complete android app from scratch and publish it on Google PlayStore, Hello everyone welcomes back to this tutorial I decided to create this series of videos which I think may help especially those beginners in the field of programming Application, May this series will help you to create and publish your first Android app

Download Complete zip files here: #Mirror1,#Mirror2

Hello everyone welcome back to this tutorial number five our android application video tutorial in the previous tutorial  we have some errors so this is what we are going to do in this video we are going to fix so we are probably when we
see that it's stuck right there and so I do I'm able to start an activity so we are trying to solve this error and the problem is we didn't assign id pretty numbers fragmented so the reason behind that is that we host okay we didn't set up this host assignment so now we go to we go back so we just make sure that we just

we want to show this to specify a layout very good since we already assigned the layout okay so yeah so this build is even much longer so since I don't want you to just wait until it will be buildings so let me just move up to the main activity
navigation container so we need to initialize this one into our java code so you just we just initialize the issue so we have another controller in this and we need to pass the id for the nav controller and our nav controller will be the host fragments this one you need to get that so we can see so this one and once

you're ready to get that we will set up my controller to our app bar to the up to our action bar so to our probably to our custom toolbar with this so we will setups in our action bar so back to our main activity and we need to uh so I will just
after this one, I can just sit up so navigation UI so action bar window controller so we can just use this method to set up action uh set up the nav controller action bar so we can use this one as well so for this one so we can use any of this method so I will just prepare to use of course this one so I will use this one and we need to so the first will be the activity the second will be nav controller so it is fast enough controller the app configuration so the app application I will just the configuration, okay and next we are going to shoot we are going to save the person not controller so we just have to we are going to set up another controller

in our notification UI so we will just use so we can use one of these methods so
let me just use the spun navigation view since we are using them since we are using the navigation then the second parameter will be so and with it so be sure that you will still set the production bar to our custom toolbar otherwise you will not see the below icon so be sure to use our custom bar and that we also set up the nav controller to our navigation UI so with the configuration okay so otherwise you will never see the menu icon so like you will never see like this, so you cannot see so this one so you must make sure that you do it in the right way, okay we already also set up the map contour into our navigation UI configurations now we can override a method to support the navigation but let me just we can just run

the application so now it is installed successfully now uh if you try to look at my screen you can see that we have the hamburger icon so how you will call but we cannot click so whenever we click this one we cannot the navigation will not be shown so the reason we are not done is setting up the navigate up pictures so that is what we are going to do in the next tutorial thanks for watching guys I hope you uh enjoy watching this video and you learn something so at least a little so maybe you can follow along with this video and just write exactly what I have done so in order for you to creates a fantastic menu like this so we hope to see you guys in the next tutorials bye for now you

#Root build. gradle codes:


#App build. gradle codes:


#Manifest.xml Codes:


#MainActivity Class Codes:

Post a Comment

0 Comments