Bottom navigation view with Navigation Component | Android Jetpack | Android

  Рет қаралды 18,855

Mafia Codes

Mafia Codes

Күн бұрын

Пікірлер
@jailsonsunshime9742
@jailsonsunshime9742 2 ай бұрын
The best tutorial, a single minute was worth more than 10 of the other videos
@mountrat
@mountrat 3 жыл бұрын
Thank u... I may not get into this video if I didn't see this "Sooo easy... " ;)
@champicoxd2654
@champicoxd2654 3 жыл бұрын
the best tutorial, other videos don't explain as well like you
@dipanjanmwb
@dipanjanmwb 4 жыл бұрын
You r really great. U solved my problems. This is the best way to make Bottom Navigation in android. Thank u so much.
@ahmetbiyik7392
@ahmetbiyik7392 4 жыл бұрын
it is very clearly explained but there are many directions to audience such as subscribe etc.. good job
@AEzz-gh4gq
@AEzz-gh4gq 5 жыл бұрын
If i am in fragment home and click on it again the fragment reload how can i prevent this
@gorkymunoz5629
@gorkymunoz5629 4 жыл бұрын
Did you get a solution for this ?
@anudeepananth
@anudeepananth 4 жыл бұрын
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
@carlosalvarado5331
@carlosalvarado5331 4 жыл бұрын
@@anudeepananth same here
@Zeeshan-Syed
@Zeeshan-Syed 4 жыл бұрын
8 months dead. Still solution not born
@carlosalvarado5331
@carlosalvarado5331 4 жыл бұрын
Zeeshan Syed I found a solution
@calerok1
@calerok1 4 жыл бұрын
Cómo guardo estados de los fragmentos? para que no se me borre algo cuando cambio de fragment? o cómo puedo ocultarlos?
@anpowersoftpowersoft
@anpowersoftpowersoft 4 жыл бұрын
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.
@mafiacodes
@mafiacodes 4 жыл бұрын
navController.addOnDestinationChangedListener is the method which u want to listen for changes...
@anpowersoftpowersoft
@anpowersoftpowersoft 4 жыл бұрын
@@mafiacodes Thank you
@HungNguyen-mv6rh
@HungNguyen-mv6rh 4 жыл бұрын
Thank you! But do you have anyway to set bottom navigation in activity instead of fragment?
@chadisfeir3809
@chadisfeir3809 3 жыл бұрын
Thank you for this tutorial!!! i have a question how to start with a splash activity and then go to the main activity ?
@mafiacodes
@mafiacodes 3 жыл бұрын
kzbin.info/www/bejne/mKbSc4CKbZ13qMU
@chadisfeir3809
@chadisfeir3809 3 жыл бұрын
@@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?
@_joelkanyi
@_joelkanyi 4 жыл бұрын
This is what I have been looking for
@guiggs3583
@guiggs3583 3 жыл бұрын
Very nice video man, thank you!
@mafiacodes
@mafiacodes 3 жыл бұрын
My pleasure!
@progtom7585
@progtom7585 3 жыл бұрын
... 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
@mafiacodes
@mafiacodes 3 жыл бұрын
Yes u need 2 nav graphs
@progtom7585
@progtom7585 3 жыл бұрын
@@mafiacodes thanks heaps!!
@rodrigofernandes9299
@rodrigofernandes9299 5 жыл бұрын
Great video. How do you customize the animation between fragments? Thanks
@mafiacodes
@mafiacodes 5 жыл бұрын
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
@rodrigofernandes9299
@rodrigofernandes9299 5 жыл бұрын
@@mafiacodes I would love that please!
@ananthkumar7943
@ananthkumar7943 5 жыл бұрын
Hi I wish to know about navigation drawer using Android jetpack navigation is there any possibility way.
@anjanisirivella8440
@anjanisirivella8440 5 жыл бұрын
Thank you! Really clear and helpful, please keep on making videos! :)
@chiragprajapati3989
@chiragprajapati3989 4 жыл бұрын
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)
@mafiacodes
@mafiacodes 4 жыл бұрын
override onBackPressed....
@remali26
@remali26 3 жыл бұрын
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?
@sohambanarase4010
@sohambanarase4010 4 жыл бұрын
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..
@mafiacodes
@mafiacodes 4 жыл бұрын
Not sure but I guess yes
@ChaerP3J
@ChaerP3J 3 жыл бұрын
where can i find the navcontroller?? its error in my java file
@vengateshm2122
@vengateshm2122 4 жыл бұрын
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?
@johnsnow8542
@johnsnow8542 4 жыл бұрын
how to save the fragment state, do we have any solution for this
@alexachadan1753
@alexachadan1753 4 жыл бұрын
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
@sikri20mohit
@sikri20mohit 5 жыл бұрын
How to add custom toolbar icon for different fragments, as I cannot find a way to change toolbar?
@mafiacodes
@mafiacodes 5 жыл бұрын
As in different menu for diff fragments??
@sikri20mohit
@sikri20mohit 5 жыл бұрын
@@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.
@mafiacodes
@mafiacodes 5 жыл бұрын
You can do that very easily, instead of adding menu inside the activity, u can inflate menu for individual fragments.
@sikri20mohit
@sikri20mohit 5 жыл бұрын
@@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.
@gurkanlus8881
@gurkanlus8881 4 жыл бұрын
how can we handle back stack like instagram or twitter?
@veygard
@veygard 3 жыл бұрын
Ty for doing this!
@Mrs4alonangel
@Mrs4alonangel 3 жыл бұрын
Very helpful! tnx
@mafiacodes
@mafiacodes 3 жыл бұрын
Glad u like it
@misterpresident2981
@misterpresident2981 4 жыл бұрын
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-118
@Ari-118 3 жыл бұрын
Ab yaar Kotlin language use kiya karo apne tutorials me. And thanks for this video, it was really helpful.
@dariuszg9991
@dariuszg9991 4 жыл бұрын
man you are fucking the beeest, where are all your subs, you deserve more
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@nareshsaini1206
@nareshsaini1206 4 жыл бұрын
I am not able to see navigation bar in activity_main.xml
@aakashmishra9155
@aakashmishra9155 3 жыл бұрын
Thanks a lot bro
@sanchitborn2win
@sanchitborn2win 4 жыл бұрын
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
@mafiacodes
@mafiacodes 4 жыл бұрын
Even with N number of fragments the logic would remain same.
@sanchitborn2win
@sanchitborn2win 4 жыл бұрын
@@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
@yashhingane9515
@yashhingane9515 5 жыл бұрын
Thank you! you are incredible.
@mafiacodes
@mafiacodes 5 жыл бұрын
Subscribe like share ☺️
@mugambidennis6268
@mugambidennis6268 5 жыл бұрын
You sir are amazing, thanks
@mafiacodes
@mafiacodes 5 жыл бұрын
Subscribe like share 😊
@johnjordandionisio9402
@johnjordandionisio9402 4 жыл бұрын
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
@alman7711
@alman7711 4 жыл бұрын
thank you so much !!!!Great.
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share😊
@yasuappstudio6969
@yasuappstudio6969 5 жыл бұрын
Bottom and actionbar netvgation plz both in one
@mafiacodes
@mafiacodes 5 жыл бұрын
You mean bottom nav and navigation drawer in one appp?
@tula1308
@tula1308 3 жыл бұрын
Great
@mafiacodes
@mafiacodes 3 жыл бұрын
Subscribe like share
@flux5669
@flux5669 4 жыл бұрын
СПАС МНЕ ЖИЗНЬ, ДОРОГОЙ!!! ВЫЙГРАЛ КОНКУРС ЗА ПРИЛОЖУХУ ГОДА
@mafiacodes
@mafiacodes 4 жыл бұрын
я рад, что ты выиграл, время вечеринки
@raunak1212
@raunak1212 4 жыл бұрын
SOEZ
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share😍
Learn Android by building a Game | Rock Paper Scissor
25:59
Mafia Codes
Рет қаралды 6 М.
Navigation Component | Android Jetpack | Android
17:26
Mafia Codes
Рет қаралды 50 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Navigation Drawer and Bottom Navigation View in Android Studio | Kotlin
27:36
Multiple Backstacks on Android (My Experience)
6:53
CodingWithMitch
Рет қаралды 12 М.
Navigation Component and Action Bar | Android Jetpack | Android
9:26
Israel Has The Right To Defend Itself | Stand-up Comedy by Daniel Fernandes
15:07
Navigation Component - Android Studio Tutorial
12:11
Stevdza-San
Рет қаралды 179 М.