Fragments with Jetpack Compose (Interoperability)
HTML-код
- Опубликовано: 15 сен 2024
- The BEST android courses in the world: codingwithmitc...
This is an example of how to use Fragments with Jetpack Compose. This video is all about interoperability when it comes to jetpack compose. We use ComposeView and a pre-existing xml layout to inflate a composable. You can inflate any custom view (including a google map) as a Composable using this method.
HorizontalProgressBar: github.com/mit...
Code: github.com/mit...
Follow me:
Instagram: / codingwithmitch
Twitter: / mitch_tabian
.
.
I really want to see a day in android development when we don't have to keep switching to new stuff every two months, anyways, thanks for the awesome video @Mitch, here's your engagement
Finally someone who said this!
@@abhisheksharma8374 Your name and surname are combinations of name and surname of two Indian I know from work.
setContent{
Column( modifier = Modifier.padding(16.dp) ){
Text( "Hey Mitch, Thanks for the videos and I learned a lot from your channel. Thank you!")
}
}
Mitch - Absolutely the best Android tutorials on YT. Great production, very clear to understand. Thanks so much!
Me: Wish i had something easy to build layouts like flutter but in native android
Compose: hello there
General Kenobi!
Wow, I am surprised by that much interoperability it's really great.
Thanks Mitch
thanks a lot for this tutorial
i see google ENGAGED pretty hard with the interoperability of their technologies, but i guess that your ENGAGEMENT to teach us the ways to do it is way harder!!!! thanks for your efforts and and for the knowledge you share with everyone!!!
😂😂😂
hey! I’m an iOS dev and I just recently discovered how neat Kotlin and Jetpack Compose actually are! Thanks for the course!
Thanks for the compose videos, coming from the front end world switching to android always seemed like a daunting task, but with jetpack compose it seems like the concepts that I already know are more in sync with just as with flutter or react native
Thanx, usually get speaking English bad, but this video describe so simple, I almost forget about language barrier
Hey Mitch, this is your engagement ❤😁, btw Love you sir
THanks for this video. Really appreciated. Keep up good work Mitch
I don't normally leave a comment, but Mitch, I really learn from you and I am aspiring to be a top developer just like you are. Keep doing it sir, someone somewhere is learning and motivated
Thanks for great free course
Really Helpful
Its really good to hear when you say BOOM in between videos
Keep the good work
Hey Mitch, thanks for the video, regards from Caracas, Venezuela
Excellent. I am in love with Jetpack Compose. ❤❤❤
Nice, it means kids can develop the application after born from 1 st day. Jet pack make life easy for devloper
Hey Mitch. Here is the engagement you asked for! Loved this video. I'll be watching more
Hi Mitch, enjoyed your excellent videos, thanks
Mitch you damn, just keep these coming, love your content, helped me a lot!
Hey, Mitch. Thank you for this course!
Hey Mitch. Thanks for these awesome videos. Jetpack Compose is the way to go for me being an XML person.
Thanks you very much for jetpack composable series, mitch
Nice! Confused, but learned something new!
Thanks Mitch, it really helped. Saved a lot of time.
Here is your engagement. I loved it.
Hey Mitch ! Thanks for these videos. You're helping me a lot and Compose makes me want to learn more about Android Development ! It's better, cleaner and clearer than the older ways...
I am improving my english language too with you. Thanks Thanks Thanks and more 1M times Like
Nicee! just what I needed! Thank you Mitch
Looks great Mitch. Keep it up man!
You're the best teacher bro
Great video on compose interoperability..
Thanks for give this course free.
Jetpack compose is awesome 👏. You thought really well.
Compose is really good. I loved the LazyColumn concept
big fan of your videos man, thanks a lot!
Nice Compose! Nice T-Shirt with Japanese!
Great video, Mitch! Here's your engagement.
Looking forward to future Compose courses, really enjoying so far 👍
Nice way to understand interoperability. Thanks
Hey Mitch, its really good your videos about Android. It helps me a lot to do the things with Android. Thank you.
Hey Mitch thanks for your compose videos
good video about interoperability of compose thanks!!
This video was very clear and informative, thanks Mitch! Keep them coming :) !
Nice videos, Mitch! I always pick up a lot in a short time.
Hi Mitch 👋 .. I am new to this channel and your contents are really great ... I am really loving your channel and your teaching 😍❤️❤️
Great video. Straight and to the point.
Mitch,
Thank you for jetpack composable series
Thanks Mitch for your video tutorials. I'm following this receipe jetpack compose course.
Big Fan Frm #India
Waiting for KMM) Great job
Hi, I want to ask can't we just set our custom view in the setContent in activity or do we need to add a ComposeView in the xml.
Hi Mitch, my doubt is similar. While adding HorizontalDottedProgress custom view, you added ComposeView in XML and then inflated it.Can't you add ComposeView directly in fragment like you were doing previously??
nicely done, keep up the good work! thanks
Thanks for the forecast! I have a quick question: I have a SafePal wallet with USDT, and I have the seed phrase. (air carpet target dish off jeans toilet sweet piano spoil fruit essay). How can I transfer them to Binance?
Thank you very much Mitch, keep it up!
Hey mitch, thanks for the videos..its amazing
Thank you very much, as always very useful info ♥
Thanks for the 💍
@@codingwithmitch I didn't get it 😂😂
Hey Mitch, thanks for your amazing content as always. Keep it up :D
Love the video and content overall!!! Super helpful course, thank you for doing this
Hey Mitch thank you for this tutorial. Hello from Ukraine 👋
Hello from Canada 😁
Thanks a lot for this tutorial. I am waiting for your next lesson 🤩
Hey Mitch! I'm waiting for next your videos about single activity
enjoying the video
Thank you! So good guide! Have a happy life;)
Hey Mitch, thanks a lot for making this course for free🤞😂
Really Best videos
Hey Mitch, this is your engagement!
btw no shave november is over ;)
😂 I'm keeping the facial hair alive for a little longer
you are a Good teacher
Great video man! keep it up.
Thank you very much Mitch, great course!
Hello Mitch, have a nice day 😁
You are amazing.. I learnt a lot
Maybe you covered it elsewhere, but I was trying to figure out how to ditch the root activities XML completely (that's the whole point of Compose, right) instead using a bit of XML with a fragment container. The solutions I have found thus far are pretty horrific to implement.
Great video! Thank you!
Ty for the compose videos, great!
Thanks for the video!!! Was great and very helpful
How to do what you r trying to do without touching XML? pure compose?
Always awesome content ❤️
If you have errors "override fun prepareCall(" Answer is here - stackoverflow.com/questions/65342763/unable-to-create-fragment-class-in-jetpack-compose
thank you i was looking for this and was not able to find this issue.
What a great overview of interoperability! It's 2022 now and I've seen answers on SO suggesting I get rid of fragments entirely (?!). Apparently, you can have bare composables in a Kotlin file. What's your take on this?
Yes. I agree with u.
thanks for compose video
Thanks for the video. very helpful
Hey Mitch loved your content.. so good than doing all the codelabs from Google.. love yaa..🤩🤩
Great content, keep it up!
Great videos!!! Thanks for bringing such a nice content
Thank you for the course ;)
hey mitch, thanks for the compose view, I got QUESTION!, how to navigate from composable file to activity file. fragment, i want to try implement esri map into my app. but esri not yet make the composable lib for their map. Please help! thank you so much mitch!
Super helpful thank you!
Thank you for the great video but i have question if possible , now for the HoizontalProgressbar , we passed it to the android view , what if we have mulple custom view , should we duplicate the code or not , i mean this way
val customView1 = HorizontalDottedProgress(ContextAmbient.current)
AndroidView(viewBlock = { customView1 })
val customView2 = HorizontalDottedProgress(ContextAmbient.current)
AndroidView(viewBlock = { customView2 })
yeah what's wrong with that
@@codingwithmitch i mean i just asked if that's a good approach to do that , thank you for the video
Thanks for such good explaination!!!
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.
Hey, thank you for the video.
thanks alot but why horizontal progress not work if i remove CircularProgressBar ??!!!
Plz make playlist for Jetpack compose
Hey Mitch! 1. Thx! 2. How can I update the value in compose fun? In your video and other tutorials you just hardcode it.
Hey Mitch, so I guess that at this moment we should still use single activity pattern with navigation component and fragments AND THEN use composables in fragments?
I'm looking forward for your idea on how to attach it to backend or viewmodels, at this point the only way I've seen is to pass viewmodel to composables and observe data in corresponding child composables from fields in viewmodel
Yep I'll be covering all that. And yes that's exactly right. I think the best way is single activity, one fragment per screen, one viewmodel per fragment, then composables
thank you kindly mitch
ContextAmbient and AmbientContext was deprecated
Replace them with
LocalContext.current
That was awesome! thanks! )
Does that mean that we should be aiming to get rid of Fragments when possible when using Compose?
Thank you Mitch.