Тёмный

Navigation Component with Jetpack Compose 

CodingWithMitch
Подписаться 145 тыс.
Просмотров 34 тыс.
50% 1

The BEST android courses in the world: codingwithmitch.com/
In this video I show you how to use Navigation Component with Jetpack Compose. It is very simple to use Navigation Component with Jetpack Compose. In fact, it's exactly the same. I recommend a single activity architecture with a fragment for each screen in your app. Each fragment should have it's own viewmodel. That kind of an architecture is perfect for Jetpack Compose and navigation component.
Code: github.com/mitchtabian/MVVMRe...
Follow me:
Instagram: / codingwithmitch
Twitter: / mitch_tabian
.
.

Наука

Опубликовано:

 

7 дек 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 125   
@BlackIronMess
@BlackIronMess 2 года назад
I'll leave a like in every single one of this videos, this course is pure GOLD!!
@feryadialoi2244
@feryadialoi2244 3 года назад
can't wait for your complete videos of this jetpact compose with navigation component
@AkshatKumawat
@AkshatKumawat 3 года назад
Hey ENGAGEMENT this is your MITCH 😂
@GeorgeMachibya
@GeorgeMachibya 3 года назад
I followed you back when I was doing Pluralsight and I heard to follow you since then and never regret
@ChetanTemkar
@ChetanTemkar 2 года назад
This is really engaging, and I like how you keep it so simple as it get complicated!
@pratiksaluja2049
@pratiksaluja2049 5 месяцев назад
Thank you so much CodingWithMitch. This tutorial helped me a lot more than Google doc.
@alishanvaliani9952
@alishanvaliani9952 2 года назад
I have to finish Jetpack Compose for 2 days, and your videos help a lot)))
@emir_avdic
@emir_avdic Год назад
Hey Mitch, you are the King. Greetings from Bosnia...
@ShethMilan
@ShethMilan Год назад
Mitch good work I really love you man for making our android developer's life.
@user-pz6nh1nw7g
@user-pz6nh1nw7g 2 года назад
THIS VIDEO WAS REALLY ENGAGING MITCH
@taar1
@taar1 3 года назад
Love the improved video quality
@mal7othify
@mal7othify 3 года назад
We needed this tutorial.THANKS!
@bryankiani8902
@bryankiani8902 Год назад
- Mitch ENGAGEMENT! - ENGAGEMENT Mitch!🤝🤝
@DS-bz4mz
@DS-bz4mz Год назад
Loving the course :D
@wardengrant6070
@wardengrant6070 2 года назад
Awesome vid man. Simple and clean
@kitarolivier
@kitarolivier 2 года назад
Thank you for this nice tutorial. Even you speak fluently, it's understandable for non native english audience. Registered on your site and cliekd like on all video i'm watching.
@PraveenKumar-qt8pl
@PraveenKumar-qt8pl 2 года назад
Awesome tutorial Mitch!
@cristianovecchi
@cristianovecchi 3 года назад
Thank you Mitch, is a very clear explanation!
@thwethmuenyein4605
@thwethmuenyein4605 Год назад
I love the way you explain.
@advitiayanand5974
@advitiayanand5974 2 года назад
Enjoying this alot!
@mehdiparsaei1867
@mehdiparsaei1867 3 года назад
The best video quality. Good luck
@danyelsh874
@danyelsh874 2 года назад
WOW perfect -> thanks mitch
@RASTstudio
@RASTstudio Год назад
This is really engaging, and I like how you keep it so simple as it get complicated! 👌👌👌
@MsMagicsproductions
@MsMagicsproductions 3 года назад
bro you're a legend!
@alirezafaraji
@alirezafaraji 3 года назад
I'm all out! just the video was great. as always :))
@shashankdaima
@shashankdaima 3 года назад
Loved your tutorials.
@khaxbiker
@khaxbiker 2 года назад
Great video as usual. thanks a lot!
@alishanvaliani9952
@alishanvaliani9952 2 года назад
I am enjoying your videos))
@WNS.Studio
@WNS.Studio 2 года назад
Thank you for creating real value for me!
@rexitspersonal8353
@rexitspersonal8353 2 года назад
i really like your teaching style bro , its really engaging
@eiphyuphwe9269
@eiphyuphwe9269 3 года назад
Awesome Mitch!
@naveen1251
@naveen1251 3 года назад
Mitch, Nice One again.. If I am dveloping an app from scratch then Is it a good practice to NOT to use fragment and do everything with compose UI?
@nomanzafarzafar7912
@nomanzafarzafar7912 3 года назад
Great effort bro. Keep it up.
@hirendesai8261
@hirendesai8261 3 года назад
is there any bug in android studio canary 4.2? cause whenever i make changes in jetpack compose app i need to uninstall the app and then have to install it again in order to see changes. I'm not able to see changes after running app or instant run feature.
@harthholtz6462
@harthholtz6462 3 года назад
You have engaged my interest... 🙂
@etelot
@etelot 3 года назад
How about this, implementation 'androidx.navigation:navigation-compose:2.4.0-alpha04'? I try to use that, but I get an internal error. A bad one.
@vibinu7589
@vibinu7589 3 года назад
Big fan bro🤩
@garenolorenzo5851
@garenolorenzo5851 3 года назад
But what is the diferent between Navigation Fragment and NavHost?
@sasanebrahimi1593
@sasanebrahimi1593 2 года назад
IT WAS ENGAGING MAN :))))
@denihilhamsyah
@denihilhamsyah Год назад
Awesome!
@hellespont5072
@hellespont5072 3 года назад
Leveling up in Compose is fun 😊
@videoguy640
@videoguy640 3 года назад
Are you gonna do a video on the navigation compose api?
@amirhoseinheydari4312
@amirhoseinheydari4312 2 года назад
Thank you Mitch
@azulamazigh2789
@azulamazigh2789 3 года назад
is there a solution that does not involve XML. like flutter.
@NiteshSingh-bv9lu
@NiteshSingh-bv9lu 3 года назад
Clear understanding
@nishantabhishek8199
@nishantabhishek8199 2 года назад
engaging video
@user-rr2db1vu3z
@user-rr2db1vu3z 3 года назад
Nice video
@raghavendpai
@raghavendpai 3 года назад
HEY MITCH THANKS
@hassanharera
@hassanharera 3 года назад
thanks mitch
@armandoavila4615
@armandoavila4615 3 года назад
Engagement 4 months late, but still engagement. I think there is room for an update on this subject, I believe Fragments are not going to be used anymore only composables 👀. Thank you, Mitch!
@schwrz1
@schwrz1 3 года назад
Probably for new projects but if you have an existing app, interoperability is huge
@nurhadi-dev
@nurhadi-dev 3 года назад
hi Mitch, last week I just learned about swiftui,, I think jetpack compose is looks similar to swiftui, isn't it? btw this is great video. thanks.
@nurmuhammad2042
@nurmuhammad2042 3 года назад
Bro you prefect what I saw
@piyushpradhan9955
@piyushpradhan9955 3 года назад
Hey Mitch, here's your composable engagement, great tutorial though.
@_maverick.
@_maverick. 2 года назад
Great!
@appsdeveloper4024
@appsdeveloper4024 3 года назад
Nice Video.
@vanosuperhero
@vanosuperhero 2 года назад
Thanks!
@kratom82
@kratom82 3 года назад
i quite dont understand why you put up graphs instead of using startdestination.. if i have to use xml again in my app compose makes no sense at all imho
@nitish.anand99
@nitish.anand99 2 года назад
You seem like a sweet guy Mitch. If someone were to be ENGAGED with you, they will be very lucky.
@tanjimahmed213
@tanjimahmed213 2 года назад
why you are using XML for containing fragments. what's the point of jetpack compose if we have to use XML?
@saqibmuhammad7218
@saqibmuhammad7218 3 года назад
Mitch I think Android team thinking about combine kotlin and flutter ------> Klutter. That's Jetpak very difficult to understand.
@codingwithmitch
@codingwithmitch 3 года назад
Klutter has a nice ring to it
@SriHarshaChilakapati
@SriHarshaChilakapati 3 года назад
I prefer to give the IDs to actions as to{destinationFragmentName} with example being toRecipeFragment. This allows us to write RecipeListFragmentDirections.toRecipeFragment() if safe-args is enabled.
@codingwithmitch
@codingwithmitch 3 года назад
safeArgs made my daemon process break somehow so I don't use it
@12Playmobil
@12Playmobil 3 года назад
Why on earth would anybody dislike any of these videos?
@jonneymendoza
@jonneymendoza 3 года назад
Hiya, how do you pass arguments to the other fragment via the example navigation? Thanks
@codingwithmitch
@codingwithmitch 3 года назад
Use a bundle. The .navigate function accepts a second argument as bundle
@AmmarFaris
@AmmarFaris 3 года назад
For those experiencing crashing of app when using latest tools and dependencies, you may want to add this (compose-theme-adapter) in dependencies: implementation "com.google.android.material:compose-theme-adapter:$compose_version"
@michaeli5113
@michaeli5113 Год назад
before watching this in 2022 i thought google messed up navigation in compose. maybe composables arent made for screens but only actual UI components.
@r4856
@r4856 2 года назад
السلام عليكم هل يمكنك ان تساعدني لدي تطبيق نصوص قمت بانشاءه على منصة اندرويد استديو واستخدمت فيه (لست فيو) واضفت ملفات(html ) في فولدر ( الاست ) كيف يمكنني من اضافة خاصية استكمال القراءة من حيث وصل القارئ عند الخروج من التتطبيق والعودة اليه مرة اخرى .... علما ان التطبيق غير ربحي ... ولك كل الشكر والتقدير ...
@sinedgars
@sinedgars 3 года назад
Engagement for algorithm. Learning to get a job to buy your course. TIP: PS, on your website, if you saw a video, it show green checkmark. When you re-watch some part of vid., GREEN CHECMARK IS LOST, would be nice if checkmark would stay either way. Thumbs up !!!
@nostranostra1176
@nostranostra1176 3 года назад
Clicked the like button before watching
@codingwithmitch
@codingwithmitch 3 года назад
Thata boy
@nostranostra1176
@nostranostra1176 3 года назад
I really like your tutorial. Keep going
@mehulbisht9708
@mehulbisht9708 3 года назад
Being in beta it still has many bugs is what i came to know so far, heating issues and resource management making the computer slow. Mitch, when can we expect a stable version outside canary build, any idea?
@codingwithmitch
@codingwithmitch 3 года назад
No idea. Seems to work great for me other than the @Preview feature.
@ViralJoshiVirus
@ViralJoshiVirus 3 года назад
Mitch, I found a new way to pass data between fragments if I am not wrong or I would say I found a new ways of roaming between fragments using Single Activity Architecture....
@skr4tchnen335
@skr4tchnen335 3 года назад
mich whenever i create a fragment this error always pop Class 'RecipeFragment' is not abstract and does not implement abstract base class member
@codymaverick7381
@codymaverick7381 3 года назад
same here, help please
@vinayreddy127
@vinayreddy127 2 года назад
ThANks for giving it for free
@easybusinessou
@easybusinessou 3 года назад
thank you
@mehdiparsaei1867
@mehdiparsaei1867 3 года назад
So, we are forced to have at least one xml layout file for hosting navigation graph?
@SociedadAndroide
@SociedadAndroide 3 года назад
nope if you use the DSL :)
@ravitejasunkara9477
@ravitejasunkara9477 3 года назад
I m using navigation component in my project. It is basically a one activity (launcher) and many fragments to navigate in it. But I have to use bottom navigation activity also in this project. So if I use another activity in between how can we traverse or is there any solution?
@codingwithmitch
@codingwithmitch 3 года назад
Use bottom navigation in a fragment or hide/show it in the activity depending on what fragments you are visiting
@samha1513
@samha1513 3 года назад
Past couple days I watched some SwiftUI tuts and I think even with Jetpack Compose the Android Development is still hard compare to iOS. thoughts ? I am thinking to switch to iOS but Not sure if I will have a job opportunity with knowing the SwifUI only.
@codingwithmitch
@codingwithmitch 3 года назад
I think android is getting easier and easier. Soon it looks like we can get rid of viewmodels even. I'll talk more about that in my new course with kmm. Ya I agree with only swiftui knowledge I'm guessing it would be tough to get a job. Just like if you only had compose knowledge it would be difficult to get a job.
@johnybaby9574
@johnybaby9574 3 года назад
nice~
@cezaryrydzyk3753
@cezaryrydzyk3753 3 года назад
What about Jetpack Compose navigation (developer.android.com/jetpack/compose/navigation )? Isn't compose built to make the whole app in kotlin without XML? Does standard Navigation from a jetpack make it harder to make an app with Top and Bottom AppBar or NavDrawer? Now when You have separated views/fragments You have to add Top/Bottom AppBar to every main Compose in fragment. Or you can use it from standard navigation but I think it is not the best to mix Compose with View system. Also making many empty fragments that contain only `return ComposeView` looks a little weird to me.
@codingwithmitch
@codingwithmitch 3 года назад
Watch this ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Gi-MnWDRcmQ.html
@CommanderSteps
@CommanderSteps 3 года назад
@@codingwithmitch That does not explain how to use it. I hoped for a video showing it off and explaining how to achieve the back button in the TopAppBar based on navigation state.
@cezaryrydzyk3753
@cezaryrydzyk3753 3 года назад
@@CommanderSteps If You want to have a back button/hamburger button in TopAppBar based on the app's current place in the Navigation graph You can look at my question and answer in SO. Probably not the best solution but it was the only way I found, maybe it helps You stackoverflow.com/questions/65079798/scaffold-with-topappbar-integration-with-navigation
@kishorramani007
@kishorramani007 3 года назад
🙌
@humbledroid
@humbledroid 3 года назад
Just a suggestion, I am sure, you are aware of it, instead of using TextUnit.Companion.Sp() , we can directly use 21.sp, 42.sp as we are using the same for dp
@codingwithmitch
@codingwithmitch 3 года назад
Actually I did not lol
@humbledroid
@humbledroid 3 года назад
@@codingwithmitch happy to help :)
@nilanjanmukhopadhyay8369
@nilanjanmukhopadhyay8369 2 года назад
Hey Mitch this is your engagement
@VIKASROYv
@VIKASROYv 3 года назад
Video is kind of unrelatable in playlist or i guess video number 4 is missing from playlist. It directly jump from compose thing to xml
@codingwithmitch
@codingwithmitch 3 года назад
Oh shit you're right video 4 is missing from playlist. I will fix tomo
@electricalprogrammer456
@electricalprogrammer456 2 года назад
🐐🐐🐐🐐
@shalinikhosla971
@shalinikhosla971 2 года назад
Heyy Mitch, ENGAGEMENT
@mehdiparsaei1867
@mehdiparsaei1867 3 года назад
You are Android teacher, English teacher, Actor, Director, Composer, Artist, ...
@riyasaxena8049
@riyasaxena8049 3 года назад
Building a new engagement process..
@gouravkolhatkar3623
@gouravkolhatkar3623 3 года назад
So the XML still lives.
@funnymoment9164
@funnymoment9164 3 года назад
Thanks. Engagement!
@lukugeraud
@lukugeraud 3 года назад
is it only me or I need to declare my fragments abstract or I get an error
@codingwithmitch
@codingwithmitch 3 года назад
only you
@aminlotfolahi3470
@aminlotfolahi3470 3 года назад
use implementation 'androidx.fragment:fragment-ktx:1.3.0-beta02'
@truepicksyt3323
@truepicksyt3323 3 года назад
Closed Blender, Now opening Android Studio
@aydogdyaydogdiev1255
@aydogdyaydogdiev1255 2 года назад
here is your engagement
@MuhammadSalman-me5ks
@MuhammadSalman-me5ks 3 года назад
engangement thing
@felipefranco7444
@felipefranco7444 3 года назад
Engagement!!
@wongvoonngee3307
@wongvoonngee3307 3 года назад
🙂
@abolfazlrezaei5397
@abolfazlrezaei5397 3 года назад
I LOVE YOU SO MUCH MITCH... JUST I CAN SAY "I LOVE YOU"...
@viktorleskov7591
@viktorleskov7591 3 года назад
Which one is more sexy for you: Flutter or Jetpack compose?)
@codingwithmitch
@codingwithmitch 3 года назад
Flutter
@malcolmdane8819
@malcolmdane8819 3 года назад
How is this simpler than regular fragments etc? I'm sick of android development being such a mess.
@leonardosibela
@leonardosibela 3 года назад
This video is so NOT UNengaging :p
@codingwithmitch
@codingwithmitch 3 года назад
Don't lie
@chaitanyagopinadh6764
@chaitanyagopinadh6764 3 года назад
Hi How to give our own drawable instead of default icons in Jetpack compose(Icons.default.home), Can you please help on this, Please find below code for your reference sealed class BottomNavigationScreens(val route: String, val resourceId: String, val icon: ImageVector) { object Frankendroid : BottomNavigationScreens("Home", "Home", Icons.Default.Home) object Pumpkin : BottomNavigationScreens("Records", "Records", Icons.Default.AccountBox) // object Ghost : BottomNavigationScreens("Ghost", "ghost_screen_route", Icons.Filled.Home) object ScaryBag : BottomNavigationScreens("ScaryBag", "Accounts", Icons.Filled.Home) }
Далее
Core Business Model (Recipe Domain Model)
15:19
Просмотров 13 тыс.
Full Guide to Jetpack Compose Effect Handlers
24:56
Просмотров 89 тыс.
DO NOT do this in a Software Engineering Interview
7:59
Jetpack Compose migration code-along
56:56
Просмотров 35 тыс.
Dark Theme and Light Theme (Jetpack Compose)
31:14
Просмотров 18 тыс.
What's new in Android development tools
34:28
Просмотров 22 тыс.
Choose a phone for your mom
0:20
Просмотров 7 млн