BottomNavigationView with Navigation Component - Android Studio Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ม.ค. 2025

ความคิดเห็น • 329

  • @bryanmoreno626
    @bryanmoreno626 4 ปีที่แล้ว +498

    Java code of 5:55
    BottomNavigationView bottomNavigationView = findViewById(R.id.bottomNavigationView);
    NavController navController = Navigation.findNavController(this, R.id.fragment);
    NavigationUI.setupWithNavController(bottomNavigationView, navController);

    • @burakkaraduman3814
      @burakkaraduman3814 4 ปีที่แล้ว +10

      I can't click the other icons with this code.

    • @henrylo4589
      @henrylo4589 4 ปีที่แล้ว +8

      Thanks man, you really helped me with my project

    • @rittikdutta3675
      @rittikdutta3675 4 ปีที่แล้ว +3

      Thanxs

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

      Thank you man.. Life saver

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

      Thanks, bro

  • @justaaq
    @justaaq 4 ปีที่แล้ว +30

    Very professional . to the point , knows when to slow and when to speed . Followed the tutorial and was able to generate the needed UI . Thanks

  • @shinmasterx
    @shinmasterx 2 ปีที่แล้ว +3

    to anyone whose app crashes when you do this.
    change the navhost package tag in activity_main.xml to just fragment or your app will crash. thank you so much to the poster of this video. you were very clear and easy to understand. it was just that little detail in the tag that was driving me crazy cuz my app kept crashing. lol. hope this helps someone!

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

      for me it crashed because I used FragmentContainerView instead of fragment, I changed it to fragment and then it works fine

    • @Laughing-Pixels
      @Laughing-Pixels ปีที่แล้ว +1

      Thank you so much!

    • @zolo375
      @zolo375 11 หลายเดือนก่อน

      Thank you shinmasterx

    • @sayanadhikari3220
      @sayanadhikari3220 6 หลายเดือนก่อน

      @@skyfeelan bro could u just provide this line of code. i am facing the same issue too. can't resolve

    • @skyfeelan
      @skyfeelan 6 หลายเดือนก่อน +1

      @@sayanadhikari3220 sorry, but rn I'm on a deadline of something, 😭 and also I forgot the exact location of the project conatining the code pertaining that problem

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

    I like this video, not because it's perfect or anything, but it shows someone using android studio and not just writing xml like everyone and their mothers.

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

    Holy shit, your content is Gold! I thought I was becoming stupid due to listening to those unclear tutorials, but yours was clear and spot on. Thanks man!

  • @jamieholmes6379
    @jamieholmes6379 3 ปีที่แล้ว +5

    Also the java code for the AppBarConfiguartion is;
    AppBarConfiguration appBarConfiguration = new AppBarConfiguration.Builder(R.id.firstFragment, R.id.secondFragment, R.id.thirdFragment).build();
    NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration);

  • @evelynediazaraque6095
    @evelynediazaraque6095 4 ปีที่แล้ว +2

    Such an amazing, concise and straight up tutorial! You're a genius, thank you!

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

    BEST TUTORIAL EVER! THANK YOU SO MUCH YOU'RE A LIFESAVER

  • @Techavior
    @Techavior 4 ปีที่แล้ว +10

    4:21
    I liked how he selected all (Ctrl + A) then pressed the magic key, then all took his place like a good solders :)
    I've tried some keys and almost nuke my entire project, then I became like a good solder who must do boring stuff to my project :\

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

    short, precise and perfect explanation

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

      Thank you 🙏💜

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

    question :-
    if I go from second fragment to third fragment then press back its back to Fragment One(home start destination ) but must be back to second Fragment .why?

  • @h.r.60
    @h.r.60 4 ปีที่แล้ว +2

    Keep up the great work, Legend 🙌

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

    Хорошо что есть переводчик TH-cam 😄.
    Огромное вам спасибо за видео

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

    You're a life-saver. Cheers
    This helped resolve 90% of my problems

  • @johnshepard1267
    @johnshepard1267 4 ปีที่แล้ว +5

    Thanks for the video, exactly what I was looking for!

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

    Amazing work, clear explanation! Thank you.

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

    Nice work, very helpful video

  • @telloborneo3635
    @telloborneo3635 4 ปีที่แล้ว +2

    great videos !!,
    Please make video about handling the backstack, its so difficult for me..,
    this is my cases, here the flow of navigation graph :
    1. A-B-C
    2. D-B-F
    The question is, how the B fragment knows, which fragment that called them, from A or D, i mean how to handle onBackpress,
    im glad if u have the solution, thanks dude!

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

    What's the reason is used instead of FragmentContainerView??

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

      There is confirmed bug (I don't remember what was that) in FragmentContainerView. For now Google suggests use fragment tag if we get bug until fix.

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

      ​@@imc0der Thats true

  • @edycarreyes99
    @edycarreyes99 4 ปีที่แล้ว +17

    It doesn't work for me!!!... The navigation between fragments doesn't work!.

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

      It's not navigating fragments for me either :(

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

      make sure you have the id of each fragment in each menu item: 4:30

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

    I like your way of explanation

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

    Hey you! You're very skilled with these design things! Thank you very much. Such an good explanation also

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

    What about `FragmentContainerView`? Should we use that instead from now on?

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

    Thanks for the great tutorial, I've got it implementet and it works!!!
    Keep up the good work!

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

    Thank you so much for this excellent tutorial

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

    Great video, helped me a lot.

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

    Java Code of 7:00
    AppBarConfiguration appBarConfiguration = new AppBarConfiguration.Builder(
    R.id.firstFragment, R.id.secondFragment, R.id.thirdFragment)
    .build();
    NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration);

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

    To the point. Amazing work, thank you for sharing!

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

      You're welcome 😊

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

    Your videos are very helpful. Thank you very much.

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

      You're welcome 👍

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

    If this code don't work. Perhaps this will help you:
    val navHostFragment =
    supportFragmentManager.findFragmentById(R.id.fragment) as NavHostFragment
    val navController = navHostFragment.navController
    findViewById(R.id.bottomNavigationView)
    .setupWithNavController(navController)

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

      Thank you, this fixed my issue

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

    Thank you worked 100% much appreciated !

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

      Glad you like it buddy!

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

      @@StevdzaSan Hi I just want to ask you if you please this question: I created a button in the home fragment that takes me to a fourth fragment (not included in the navigation bar), and when navigating to another fragment from the bar, and then clicking the home button from the navigation bar, that 4th fragment is still, I want to return to the home.If u can suggest a way.Thanks!

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

    Short and useful tutorial thanks a lot!

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

    Thanks so much sir, it's working perfeclty. The only problem that i had was:
    Kotlin recreted a "Fragment" intead "fragment", and you didnt show us that we needed to create an id on fragment, in the line: 25 of "activity_main". apartfrom that, everything is working. Thanks

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

    Thanks for information 👍

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

    I was stuck with the problem of switching the fragments when pressing the bottom navbar items but when i set the same id of fragments in my_nav and items in bottom_nav (menu) it runs succesfully.

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

    4:22 to 4:23
    What did input on keyboard to change coding style?

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

    Thank you so much for this!

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

    Thank you! Helped me a lot!

  • @10wyk-f2y
    @10wyk-f2y 2 ปีที่แล้ว

    Hello, I have a question, how can I update a values other fragments, for example i have an app that can save some tasks, so i have one fragment to show tasks and another one to set and save tasks, but fragment pages do not refreshed or reload so it problematic to me, to show the added or updated data instead of just switching fragment I am turning off the app and turn un, so how can I solve it?

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

    Thanks! for sharing this tutorial, very helpful

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

    Thank you so much my teacher didnt mention the fact that the icon item Id has to match fragment id found in bot nav menu

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

    I have a problem with this:
    I have created the fragments, but i have a google maps activity, that i want to add in the navbar.
    I put it in my:nav.xml and detects that is an activity.
    When i run my app i can navigate normaly, but when i press in Maps button it crashes.
    Any solution to implements a normal activity?

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

    Thanks for help, you are my hero

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

    Can someone help me? I have the exact same code as the video with, the only difference is that a fragment from a nav_graph to an another activity (HomeActivity) with another (surely in the future) nav_graph navigation. The problem is that all navigation function well but the AppBar and the BottomNavigationView doesn't display at the activity and seems like it only renders the pure fragment with the text. can someone help me?

  • @jacoblee89
    @jacoblee89 4 ปีที่แล้ว +2

    i thought i was watching a speedrunner in mario maker but good vid tyvm!

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

    If you add setOnItemSelectedListener for the menu, do you need then to manually add the transition to the fragments?

  • @pauljohn.ytchannel
    @pauljohn.ytchannel 4 ปีที่แล้ว +6

    The fragment is always re created every time you tap new tab, how to solved that?

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

      @@nevermore5173 how pls help i noticed it and i need help

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

      @@theworldminusraphtheninjat4378 This is a fairy simple project I discontinued. I used that technique in this app. Take a look:
      github.com/Re1r0/StudyAssistant
      Edit: I used a custom library because it looks good. But the same can be achieved using Google's de facto bottom navigation view.

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

    very clear and helpful!

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

    This is awesome.
    How about to swipe left and right those 3 fragments? I have no clue

  • @spartan10234
    @spartan10234 4 ปีที่แล้ว +2

    In Java i tried using AppBarConfiguration appBarConfiguration = new AppBarConfiguration.Builder(R.id.firstFragment, R.id.secondFragment, R.id.thirdFragment).build();
    and
    NavigationUI.setupWithNavController(appBarConfiguration);
    to update the top app bar. However, android is telling me "Cannot resolve method setUpWithNavController(appBarConfiguration)"
    does anyone know how to resolve this?

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

      Refer to the comment with highest number of likes

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

      @@StevdzaSan It doesnt change the title when the app navigates to a new fragment. Please look into it. even your code that you ask to refer to doesn't change it

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

      @@mrowox In your nav graph, just change label attribute.

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

      @@StevdzaSan it still shows the same thing. I really can't figure out what is wrong because I am new to this

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

      Here it is:
      Set topLevelDestinations = new HashSet();
      topLevelDestinations.add(R.id.firstFragment);
      topLevelDestinations.add(R.id.secondFragment);
      topLevelDestinations.add(R.id.thirdFragment);
      AppBarConfiguration appBarConfiguration = new AppBarConfiguration.Builder(topLevelDestinations).build();
      NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration);

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

    Awesome like usual, but I prefer Java instead of kotlin. One like.

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

      You can use both of them in one project. Copy Kotlin code and paste it in java class, android studio will automatically convert it to java for you.

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

    You are the best!

  • @harshpatel-bt5wr
    @harshpatel-bt5wr 3 ปีที่แล้ว

    how can we handle multiple navigation graph for managing multiple backstacks

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

    Hello sir what is the your Button navigation dependency?

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

    another applauder!!! thank you

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

    Very nice, thanks so much

  • @anudeepananth
    @anudeepananth 4 ปีที่แล้ว +2

    The fragments get destroyed when user moves to another fragment... is there a way to save the fragment state with this?

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

      Same issue for me....

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

      @@sambhusbabu So what I did was not use this navigation component library, I chose to add fragments and hide/show the other fragment based on user interaction, thus saving the states

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

    Hi, I don’t have a “navigation view” (5:37) i.e. when typing line 13: R.id.bottomNavigationView doesn’t work... what is going on? Thank you!

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

      The step isn't shown in the video but you have to add android:id="@+id/bottomNavigationView" in the activity_main.xml where you have your

    • @Любовь-щ1в
      @Любовь-щ1в 2 ปีที่แล้ว

      @@ace6370 thank you!!!!!!!😍

  • @nitin88mehta
    @nitin88mehta 4 ปีที่แล้ว +5

    Could you please share the source code of the following. I am having trouble importing correct libraries.

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

    At point 5:55 that code doesn’t work for me it says that it’s correct but when I try to run it on an emulator it just quits the app and says that there’s a problem with it and I’ve narrowed it down to that bit of code

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

      I have the same problem right now, but I've commented that part of code and it still doesn't work, did you find the solution?

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

      @@jeanmichel4269 im currently facing this issue... did u guys later find the solution ?

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

      @@erinwolf1563 try
      nvBottom = findViewById(R.id.nv_newsBottom)
      val nvController = supportFragmentManager.findFragmentById(R.id.fv_news)?.findNavController()
      nvController?.let { nvBottom.setupWithNavController(it) }

  • @ManishKumar-lr9ig
    @ManishKumar-lr9ig 3 ปีที่แล้ว

    I have one question . If I want to add two fragment in profile tab ... how to do that

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

    Hi there i used your tutorial and it works perfectly but im facing the issue that it seems to override my start activity which is my login activity and launches this bottom navigation activity first each time. Is there any fix to this?

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

    Thumbs up for you my friend. Thank you!

  • @Rafael-hk9pg
    @Rafael-hk9pg 4 ปีที่แล้ว +1

    My BottomNavigationView is not showing up at the bottom, any suggestions?

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

    Please if anyone can answer me. How to customize the toolbar according to the fragment I am in?

  • @D3r_3k_
    @D3r_3k_ 4 ปีที่แล้ว +2

    oh Thanks!
    sorry man, but if i want to combinate drawer navigation and bottom navigation with fragments. how would do it?

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

    How can I add transition animations between those fragments?

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

    I want to add the bottom navigation in a fragment?

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

    can you change the blue color of the selected item?

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

    We have 3 top-level destinations (first fragment, second ... and third), when I click BottomNavigationView to navigete to second or third fragment, then press the back button, it will always come back to first fragment. Only when I'm in first fragment, press the back button can exit the activity. How to make exit activity when I cpress back button no matter what fragment I'm in?

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

      Did you ever find a solution to this?

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

    Is this a Java tutorial or Kotlin? and plz let us know ahead of time if you will be working with Kotlin or Java i like to stay consistent...Anyways great job sir thanks

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

    how to create function method another fragment login goto bottom navigation with architecture component ?

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

    hmmm when i call the menu instead of getting the icons i get the 'first fragment' wording

  • @ShivamMalik95
    @ShivamMalik95 4 ปีที่แล้ว +2

    How to not display the text in the menu title? i want to just show the menu icon and not the title text with it take the space

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

    how to make all the text on the button visible, the text on the button should be visible even if you do not press the button.

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

      please help me

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

      Stevdza-San

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

    Can I adjust the size and spacing of the navigation icon? Can I put in Chrome Icon and make the start menu and program list appear like Windows?

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

    why my fragment didnt become class, even though they are class. i already follow all instruction rewacth video 3x. pretty sure im have same code with u. but the app crashed...

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

    It is good tutorial. I did all but when I click the icons, the app goes wrong and disappear from the emulator. And when I remove the fragments, I can see the icons but they don't listen at all. And the other thing is, I couldn't get the titles with the icons. Why? Android Studio couldn't detect me where I missed it. Please help me.

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

    What key combo did he pressed at 4:22 to make the code clean?

    • @StevdzaSan
      @StevdzaSan  4 ปีที่แล้ว +3

      Ctrl + Alt + L

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

      @@StevdzaSan Thank you for the reply!!

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

    great tutorial

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

    val appBarConfiguration=AppBarconfiguration(setof(R.id.firstFragment,R.id.seconfFragement,R.id.thirdFragement));
    setupActionBarWithNacController(navController,appBarConfiguration)
    im have trouble to fine the equivalent syntax in JAVA
    Can Any one help me out

    • @sinbobey39
      @sinbobey39 4 ปีที่แล้ว +6

      Here it is:
      Set topLevelDestinations = new HashSet();
      topLevelDestinations.add(R.id.firstFragment);
      topLevelDestinations.add(R.id.secondFragment);
      topLevelDestinations.add(R.id.thirdFragment);
      AppBarConfiguration appBarConfiguration = new AppBarConfiguration.Builder(topLevelDestinations).build();
      NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration);

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

      @@sinbobey39 very helpful for java code

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

    I got a bug because of this, when I click on back button instead of closing the app the activity gets recreated again

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

    create destination is not working for me....is there any dependency needed?

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

    may bottom navigation, navigate by swiping with Navigation component??

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

    Sir how to stop fragment recreation every time the tabs clicked?
    When one tab is clicked first time the fragment should be created but when the same tab is clicked second time I don't want to recreate the fragment so is there any way to achieve that?

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

    How can we do this inside a fragment and in Java? I tried my best but it won't work

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

    How to make the bottom navigation disappear when i open another fragment?

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

    how do i navigate to a fragment that does not have BottomNavigationView?

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

    how can I set a particular fragment as the starting fragment....which appears first on opening app

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

    It's possible to save the state of the fragments between transition of fragments with this code?

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

    How to get rid of fragment warning ⚠️ in the activity main

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

    why i dont have compile option in my gradle

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

    why I cant run this project it keeps on crashing, I did it the way he did it I just follow these step by step

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

      I have the same problem right now :'( did you find the solution?

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

    thanks😍

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

    thank you

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

    Right now im having problems because the activity_main_fragment.xml is supposed to have instead of , do you know how to handle this?

  • @Ari-118
    @Ari-118 3 ปีที่แล้ว

    It was a nice video but one thing I'd like to bring to your notice is that I didn't get to use app bar configuration object. Action bar's title was changing with just a method which is set up action bar with nav controller and with just one parameter navController. So why did you make that extra instance of app bar configuration?

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

    Hi nice tutorial. How can I add gridView in Home Fragment ? I can create gridView other app in mainActivity bu I can't open gridView when I clicked home icon.

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

    Thank you!!!

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

    when I added a recyclerview, every fragment shows the recyclerview, can someone tell me why that is? Where could have went wrong? Thanks

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

      In which fragment you added the Recyclerview??

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

      @@vijayadhaschandran6711 I added it in the home fragment

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

      @@wahahah I am also adding recycler view in HomeFragment.. but I am not facing any issue..