Navigation Component in Android Studio - Part I

Поділитися
Вставка
  • Опубліковано 16 жов 2024

КОМЕНТАРІ • 43

  • @Рома-б4е4э
    @Рома-б4е4э 2 роки тому

    Thank you very much, the author of the video, I sat for 3 days and could not set up this navigation, reviewed different videos, re-read the instructions from Google 20 times, But after watching this video I succeeded, many thanks to the author

    • @Рома-б4е4э
      @Рома-б4е4э 2 роки тому

      I also want to add to access the fragment, you can use the following val button: Button = view.findViewById(R.id.fragmentABtn) and then just button.setOnClickListener

    • @bluefire3297
      @bluefire3297 Рік тому

      Mine doesnt work 😢 there is no error but still nothing happen when i clicked on the buttons

  • @Karlingas225
    @Karlingas225 2 роки тому

    I LOVE YOU SOOO MUCH, LITERALY STRUGLED FOR THIS 4 DAYS , THANK YOUUU

  • @zanecomputer9078
    @zanecomputer9078 Рік тому

    nice video. thanks !

  • @budzmarooo5363
    @budzmarooo5363 Рік тому

    This was the best tutorial I watched. 🖐

  • @tayyab222222
    @tayyab222222 Рік тому +1

    Excellent tutorial, to the point the concise, thank you..

  • @falcongreens2570
    @falcongreens2570 2 роки тому

    The best tutorial for the new (and confusing) navigation drawer.

  • @payelpaul8175
    @payelpaul8175 3 роки тому +1

    thanks man ... a lots of thanks

  • @Zekushido
    @Zekushido 2 роки тому

    you're literally my day saviour

  • @eduardobuenaventura7972
    @eduardobuenaventura7972 3 роки тому +3

    I followed the steps but in the part of adding fragmentABtn.setOnClickListener, the fragmentABtn is not showing and turning to red. I don't know what is missing.

    • @carlosarena9864
      @carlosarena9864 3 роки тому +3

      I don't understand how he got the button in the first place, maybe he is using a Kotlin feature that was deprecated, but you can use the findviewbyid to get the button first. I'm not sure, but I think it would be:
      val fragmentABtn: Button = view.findViewById(R.id.fragmentABtn)
      Then you can use the button

  • @razvanrusan9319
    @razvanrusan9319 2 роки тому +3

    Any chance you could do this in Java as well? I've had trouble from 12:55, in Java, there is a class that has the setupActionBarWithNavController, and I tried having my MainActivity implement it, but it didn't work. Such big differences between java and kotlin seem counter-intuitive to me. Perhaps I am doing something wrong.

    • @lover1301
      @lover1301 2 роки тому

      for new android studio edition .. how to connect your fragment view on activity main
      val hostFragment = supportFragmentManager.findFragmentById(R.id.fragment) as NavHostFragment
      val controller = hostFragment.navControlle

    • @boundary1918
      @boundary1918 2 роки тому

      @@lover1301 in the example, you need to put "fragmentContainerView" instead of "fragment"

  • @mariummagdy4359
    @mariummagdy4359 3 роки тому +1

    Thank you so much for this great tutorial I was watching this Concept on Udacity but tbh this one is better good job 👏

    • @lover1301
      @lover1301 2 роки тому

      I took a course in Udacity but it was terrible I didn't understand anything and everything was fast without explaining a lot of things

  • @jackiloumunez2385
    @jackiloumunez2385 3 роки тому

    Thank You for sharing, it is very useful for me as a student

  • @cagrkrt332
    @cagrkrt332 2 роки тому

    Thanks huge help

  • @mianhaseeb9107
    @mianhaseeb9107 3 роки тому

    Simple and clear explanation love from pakistan

    • @CodeWithMazn
      @CodeWithMazn  3 роки тому

      Thank you! Welcome to our community! Looking forward to seeing you around!

  • @lover1301
    @lover1301 2 роки тому +1

    for new android studio edition .. how to connect your fragment view on activity main
    val hostFragment = supportFragmentManager.findFragmentById(R.id.fragment) as NavHostFragment
    val controller = hostFragment.navController

  • @earnknowledge8019
    @earnknowledge8019 3 роки тому

    great sir plz keep going

    • @CodeWithMazn
      @CodeWithMazn  3 роки тому

      Thank you! I will release the second part in few days! Stay tuned!

  • @immersivevr3605
    @immersivevr3605 3 роки тому +2

    I couldn't set onclicklistener on the button , i followed the video exactly but studio was not detecting my button

    • @carlosarena9864
      @carlosarena9864 3 роки тому +3

      I don't understand how he got the button in the first place, maybe he is using a Kotlin feature that was deprecated, but you can use the findviewbyid to get the button first. I'm not sure, but I think it would be:
      val fragmentABtn: Button = view.findViewById(R.id.fragmentABtn)
      Then you can use the button

    • @immersivevr3605
      @immersivevr3605 3 роки тому +2

      @@carlosarena9864 thanks for the reply and yes he was using kotlin Synthetics which was deprecated recently and it took me hours to find that..... then I implemented viewBinding in my project :)

    • @Barca4Ayman
      @Barca4Ayman 3 роки тому +2

      @@carlosarena9864 Thank you bro i spent 2 days i wish i read your comment earlier you saved me

  • @05Sambist
    @05Sambist 3 роки тому

    Great! Thank you!

  • @dreamer6228751
    @dreamer6228751 3 роки тому

    it's great video man)))

  • @dopbip4399
    @dopbip4399 3 роки тому

    Thanks Bother

    • @CodeWithMazn
      @CodeWithMazn  3 роки тому

      You welcome! Glad that you liked it!

  • @srikanthgutti5056
    @srikanthgutti5056 3 роки тому

    In FragmentA -> btn click scenario --> How to handle recyclerview onclick in main fragment using interface. override fun onItemClick(data: Data) {
    Navigation.findNavController(view).navigate(R.id.action_putAwayFragment_to_enterDimensionsFragment)
    }
    facing issue with view

  • @bluefire3297
    @bluefire3297 Рік тому

    It doesnt work.......

  • @dasstraat
    @dasstraat 3 роки тому

    This is not for dummies.. in AndroidStudio how to get to this navigation screen.... so after 10 seconds I hook of and search a better video.

  • @mithrandirincanus3675
    @mithrandirincanus3675 3 роки тому +1

    im sure your chanel will grows soon your tutorials are great

  • @mithrandirincanus3675
    @mithrandirincanus3675 3 роки тому +1

    thats great sir , please upload more android development tutorials

    • @CodeWithMazn
      @CodeWithMazn  3 роки тому

      More awesome tutorials are coming so stay tuned!