Navigation Component in Android Studio - Part I

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ธ.ค. 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

  • @falcongreens2570
    @falcongreens2570 3 ปีที่แล้ว

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

  • @Zekushido
    @Zekushido 3 ปีที่แล้ว

    you're literally my day saviour

  • @budzmarooo5363
    @budzmarooo5363 2 ปีที่แล้ว

    This was the best tutorial I watched. 🖐

  • @mianhaseeb9107
    @mianhaseeb9107 4 ปีที่แล้ว

    Simple and clear explanation love from pakistan

    • @CodeWithMazn
      @CodeWithMazn  4 ปีที่แล้ว

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

  • @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"

  • @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

  • @tayyab222222
    @tayyab222222 2 ปีที่แล้ว +1

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

  • @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

  • @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

  • @zanecomputer9078
    @zanecomputer9078 ปีที่แล้ว

    nice video. thanks !

  • @payelpaul8175
    @payelpaul8175 3 ปีที่แล้ว +1

    thanks man ... a lots of thanks

  • @jackiloumunez2385
    @jackiloumunez2385 3 ปีที่แล้ว

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

  • @cagrkrt332
    @cagrkrt332 2 ปีที่แล้ว

    Thanks huge help

  • @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

  • @earnknowledge8019
    @earnknowledge8019 4 ปีที่แล้ว

    great sir plz keep going

    • @CodeWithMazn
      @CodeWithMazn  4 ปีที่แล้ว

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

  • @dreamer6228751
    @dreamer6228751 4 ปีที่แล้ว

    it's great video man)))

    • @CodeWithMazn
      @CodeWithMazn  4 ปีที่แล้ว

      I am glad that you liked it!

  • @mithrandirincanus3675
    @mithrandirincanus3675 4 ปีที่แล้ว +1

    im sure your chanel will grows soon your tutorials are great

    • @CodeWithMazn
      @CodeWithMazn  4 ปีที่แล้ว

      Thank you! It means a lot!

  • @05Sambist
    @05Sambist 4 ปีที่แล้ว

    Great! Thank you!

  • @srikanthgutti5056
    @srikanthgutti5056 4 ปีที่แล้ว

    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

  • @dopbip4399
    @dopbip4399 4 ปีที่แล้ว

    Thanks Bother

    • @CodeWithMazn
      @CodeWithMazn  4 ปีที่แล้ว

      You welcome! Glad that you liked it!

  • @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 4 ปีที่แล้ว +1

    thats great sir , please upload more android development tutorials

    • @CodeWithMazn
      @CodeWithMazn  4 ปีที่แล้ว

      More awesome tutorials are coming so stay tuned!