The best tutorial, a single minute was worth more than 10 of the other videos
@mountrat3 жыл бұрын
Thank u... I may not get into this video if I didn't see this "Sooo easy... " ;)
@champicoxd26543 жыл бұрын
the best tutorial, other videos don't explain as well like you
@dipanjanmwb4 жыл бұрын
You r really great. U solved my problems. This is the best way to make Bottom Navigation in android. Thank u so much.
@ahmetbiyik73924 жыл бұрын
it is very clearly explained but there are many directions to audience such as subscribe etc.. good job
@AEzz-gh4gq5 жыл бұрын
If i am in fragment home and click on it again the fragment reload how can i prevent this
@gorkymunoz56294 жыл бұрын
Did you get a solution for this ?
@anudeepananth4 жыл бұрын
Yes exactly, my same problem... @ yoursTRULY is there a way to save fragment states with this? Or there is no point in using especially if we have recycler views in these fragment
@carlosalvarado53314 жыл бұрын
@@anudeepananth same here
@Zeeshan-Syed4 жыл бұрын
8 months dead. Still solution not born
@carlosalvarado53314 жыл бұрын
Zeeshan Syed I found a solution
@calerok14 жыл бұрын
Cómo guardo estados de los fragmentos? para que no se me borre algo cuando cambio de fragment? o cómo puedo ocultarlos?
@anpowersoftpowersoft4 жыл бұрын
Excellent videos Thank you. I just want to know if is there any callback or click listener which can tell me when a fragment is swapped in or out I want to close my FAB when I move from one fragment to other.
@mafiacodes4 жыл бұрын
navController.addOnDestinationChangedListener is the method which u want to listen for changes...
@anpowersoftpowersoft4 жыл бұрын
@@mafiacodes Thank you
@HungNguyen-mv6rh4 жыл бұрын
Thank you! But do you have anyway to set bottom navigation in activity instead of fragment?
@chadisfeir38093 жыл бұрын
Thank you for this tutorial!!! i have a question how to start with a splash activity and then go to the main activity ?
@mafiacodes3 жыл бұрын
kzbin.info/www/bejne/mKbSc4CKbZ13qMU
@chadisfeir38093 жыл бұрын
@@mafiacodes Thank you! one more question what if we need to go from home fragment to another fragment outside the bottom navigation view. For ex: inside the home fragment, we have a button to login fragment?
@_joelkanyi4 жыл бұрын
This is what I have been looking for
@guiggs35833 жыл бұрын
Very nice video man, thank you!
@mafiacodes3 жыл бұрын
My pleasure!
@progtom75853 жыл бұрын
... say if I want either fragment to hold a sequence of fragments, do I need to then setup two navigation graphs? I have an app I'm building with 2 distinctly seperate routes to take through the app... Thanks in advance
@mafiacodes3 жыл бұрын
Yes u need 2 nav graphs
@progtom75853 жыл бұрын
@@mafiacodes thanks heaps!!
@rodrigofernandes92995 жыл бұрын
Great video. How do you customize the animation between fragments? Thanks
@mafiacodes5 жыл бұрын
Its very easy, its on the right pane in android studio, if you cant figure out or want custom animations then i’ll make a video for that
@rodrigofernandes92995 жыл бұрын
@@mafiacodes I would love that please!
@ananthkumar79435 жыл бұрын
Hi I wish to know about navigation drawer using Android jetpack navigation is there any possibility way.
@anjanisirivella84405 жыл бұрын
Thank you! Really clear and helpful, please keep on making videos! :)
@chiragprajapati39894 жыл бұрын
How can we perform some action on back press event in navigation component? (Ex: show pop up on back pressed and based on user selection navigate to back otherwise not)
@mafiacodes4 жыл бұрын
override onBackPressed....
@remali263 жыл бұрын
Hi! You have been so helpful sir, but I have a problem... I created a new fragment but when I am pressing the back button the application closes and it gives me non error, thus I don't know what to do. If I post my git repository can you help me understand what I'm doing wrong?
@sohambanarase40104 жыл бұрын
Sir can we connect the bottom navigating icon to a link to website...I actually have web view app so can i navigation bar to it? Please reply..
@mafiacodes4 жыл бұрын
Not sure but I guess yes
@ChaerP3J3 жыл бұрын
where can i find the navcontroller?? its error in my java file
@vengateshm21224 жыл бұрын
If home fragment has a recycler view and tapping on an item takes you to a detail fragment then how will you hide the bottom nav view shown below detail fragment?
@johnsnow85424 жыл бұрын
how to save the fragment state, do we have any solution for this
@alexachadan17534 жыл бұрын
Hy I really liked your video i was searching for this exact vdo for a long time... Bro can you do one more video on how the nav graph if there are more than one fragment related to the home_fragment
@sikri20mohit5 жыл бұрын
How to add custom toolbar icon for different fragments, as I cannot find a way to change toolbar?
@mafiacodes5 жыл бұрын
As in different menu for diff fragments??
@sikri20mohit5 жыл бұрын
@@mafiacodes actually I want to customise the toolbar for specific fragments. E.g In one fragment I want to show a notification icon on top right of the toolbar, and in second fragment I want to show a logout icon.
@mafiacodes5 жыл бұрын
You can do that very easily, instead of adding menu inside the activity, u can inflate menu for individual fragments.
@sikri20mohit5 жыл бұрын
@@mafiacodes one more thing, i just added a bottom navigation view but in the xml there is no toolbar code but all the fragments are showing default toolbar.
@gurkanlus88814 жыл бұрын
how can we handle back stack like instagram or twitter?
@veygard3 жыл бұрын
Ty for doing this!
@Mrs4alonangel3 жыл бұрын
Very helpful! tnx
@mafiacodes3 жыл бұрын
Glad u like it
@misterpresident29814 жыл бұрын
I have a question...what if I need to hide te navbar in some fragments, splashscreen in my case. I've tried with: bottomNavigationView = vista.findViewById(R.id.navview_bottom); bottomNavigationView.setVisibility(View.GONE); but throws a NPE i've done this in my fragment, not in Activity, maybe that is the problem, but I can't find another way to do it Thanks in advices. Good vid! :D
@Ari-1183 жыл бұрын
Ab yaar Kotlin language use kiya karo apne tutorials me. And thanks for this video, it was really helpful.
@dariuszg99914 жыл бұрын
man you are fucking the beeest, where are all your subs, you deserve more
@mafiacodes4 жыл бұрын
Subscribe like share
@nareshsaini12064 жыл бұрын
I am not able to see navigation bar in activity_main.xml
@aakashmishra91553 жыл бұрын
Thanks a lot bro
@sanchitborn2win4 жыл бұрын
this was easy with bottom navigation because of two fragments, can you make video with Navigation component on navigation drawer, because it has more fragments and it will be more complex
@mafiacodes4 жыл бұрын
Even with N number of fragments the logic would remain same.
@sanchitborn2win4 жыл бұрын
@@mafiacodes ok but how can we customize this? i mean how can i stop refreshing fragment on same tab or save current state of fragment
@yashhingane95155 жыл бұрын
Thank you! you are incredible.
@mafiacodes5 жыл бұрын
Subscribe like share ☺️
@mugambidennis62685 жыл бұрын
You sir are amazing, thanks
@mafiacodes5 жыл бұрын
Subscribe like share 😊
@johnjordandionisio94024 жыл бұрын
If you guys having issue. Go to your nav_graph code. Remove + in android:id="@+id/yourId" do in every fragment. Remove also the + startDestination. Or refer to this kzbin.info/www/bejne/kHK7p6KIn8mNq68
@alman77114 жыл бұрын
thank you so much !!!!Great.
@mafiacodes4 жыл бұрын
Subscribe like share😊
@yasuappstudio69695 жыл бұрын
Bottom and actionbar netvgation plz both in one
@mafiacodes5 жыл бұрын
You mean bottom nav and navigation drawer in one appp?
@tula13083 жыл бұрын
Great
@mafiacodes3 жыл бұрын
Subscribe like share
@flux56694 жыл бұрын
СПАС МНЕ ЖИЗНЬ, ДОРОГОЙ!!! ВЫЙГРАЛ КОНКУРС ЗА ПРИЛОЖУХУ ГОДА