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
    .
    .

Комментарии • 261

  • @TheKamble
    @TheKamble 3 года назад +44

    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

    • @abhisheksharma8374
      @abhisheksharma8374 2 года назад +2

      Finally someone who said this!

    • @pcprincipal345
      @pcprincipal345 Год назад

      @@abhisheksharma8374 Your name and surname are combinations of name and surname of two Indian I know from work.

  • @ayushsaini1175
    @ayushsaini1175 3 года назад +1

    setContent{
    Column( modifier = Modifier.padding(16.dp) ){
    Text( "Hey Mitch, Thanks for the videos and I learned a lot from your channel. Thank you!")
    }
    }

  • @garyjacobs330
    @garyjacobs330 3 года назад +3

    Mitch - Absolutely the best Android tutorials on YT. Great production, very clear to understand. Thanks so much!

  • @mehulbisht9708
    @mehulbisht9708 3 года назад +18

    Me: Wish i had something easy to build layouts like flutter but in native android
    Compose: hello there

  • @MohamedHelmyDeveloper
    @MohamedHelmyDeveloper 3 года назад +1

    Wow, I am surprised by that much interoperability it's really great.
    Thanks Mitch

  • @ayoubmazrou8800
    @ayoubmazrou8800 3 года назад +7

    thanks a lot for this tutorial

  • @alexrusanovschi218
    @alexrusanovschi218 3 года назад +3

    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!!!

  • @alex_riakhin
    @alex_riakhin Год назад

    hey! I’m an iOS dev and I just recently discovered how neat Kotlin and Jetpack Compose actually are! Thanks for the course!

  • @gersongallo6892
    @gersongallo6892 3 года назад +3

    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

  • @Валерий-н3ч
    @Валерий-н3ч 3 года назад

    Thanx, usually get speaking English bad, but this video describe so simple, I almost forget about language barrier

  • @truepicksyt3323
    @truepicksyt3323 3 года назад +4

    Hey Mitch, this is your engagement ❤😁, btw Love you sir

  • @ShethMilan
    @ShethMilan Год назад

    THanks for this video. Really appreciated. Keep up good work Mitch

  • @houseofgracetr
    @houseofgracetr 3 года назад

    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

  • @sulemankhan523
    @sulemankhan523 Год назад

    Thanks for great free course
    Really Helpful
    Its really good to hear when you say BOOM in between videos
    Keep the good work

  • @VenewebTV
    @VenewebTV 2 года назад

    Hey Mitch, thanks for the video, regards from Caracas, Venezuela

  • @kisan_thapa
    @kisan_thapa 3 года назад +1

    Excellent. I am in love with Jetpack Compose. ❤❤❤

  • @myexperience_me_4646
    @myexperience_me_4646 3 года назад +1

    Nice, it means kids can develop the application after born from 1 st day. Jet pack make life easy for devloper

  • @ntikomathaba6446
    @ntikomathaba6446 3 года назад

    Hey Mitch. Here is the engagement you asked for! Loved this video. I'll be watching more

  • @ahmadruswandi995
    @ahmadruswandi995 Год назад +1

    Hi Mitch, enjoyed your excellent videos, thanks

  • @ibrhm.117
    @ibrhm.117 3 года назад +1

    Mitch you damn, just keep these coming, love your content, helped me a lot!

  • @nethubtv4079
    @nethubtv4079 Год назад

    Hey, Mitch. Thank you for this course!

  • @mulindayahaya3036
    @mulindayahaya3036 2 года назад

    Hey Mitch. Thanks for these awesome videos. Jetpack Compose is the way to go for me being an XML person.

  • @yousefabdolzadeh1734
    @yousefabdolzadeh1734 2 года назад

    Thanks you very much for jetpack composable series, mitch

  • @kinenbrasil
    @kinenbrasil 2 года назад

    Nice! Confused, but learned something new!

  • @palaksdarji
    @palaksdarji 2 года назад

    Thanks Mitch, it really helped. Saved a lot of time.

  • @TEGRCOLLC
    @TEGRCOLLC 2 месяца назад

    Here is your engagement. I loved it.

  • @3riodokaos333
    @3riodokaos333 3 года назад

    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...

  • @mehdiparsaei1867
    @mehdiparsaei1867 3 года назад +2

    I am improving my english language too with you. Thanks Thanks Thanks and more 1M times Like

  • @bryankiani8902
    @bryankiani8902 Год назад

    Nicee! just what I needed! Thank you Mitch

  • @sheenfabile9460
    @sheenfabile9460 3 года назад +1

    Looks great Mitch. Keep it up man!

  • @rajeshvq
    @rajeshvq 3 года назад +1

    You're the best teacher bro

  • @prashantchopde2622
    @prashantchopde2622 2 года назад

    Great video on compose interoperability..

  • @HelloBayzid
    @HelloBayzid 3 года назад +1

    Thanks for give this course free.

  • @tejumurthymp586
    @tejumurthymp586 3 года назад

    Jetpack compose is awesome 👏. You thought really well.

  • @yogenp5763
    @yogenp5763 3 года назад

    Compose is really good. I loved the LazyColumn concept

  • @alvaroisea2259
    @alvaroisea2259 2 года назад

    big fan of your videos man, thanks a lot!

  • @gamiike
    @gamiike 3 года назад

    Nice Compose! Nice T-Shirt with Japanese!

  • @nikhilsalunke7019
    @nikhilsalunke7019 2 года назад

    Great video, Mitch! Here's your engagement.

  • @hellespont5072
    @hellespont5072 3 года назад

    Looking forward to future Compose courses, really enjoying so far 👍

  • @Zaki-Was-Here
    @Zaki-Was-Here 3 года назад

    Nice way to understand interoperability. Thanks

  • @ramprasadg1028
    @ramprasadg1028 2 года назад

    Hey Mitch, its really good your videos about Android. It helps me a lot to do the things with Android. Thank you.

  • @محسننادرزاده
    @محسننادرزاده 2 года назад

    Hey Mitch thanks for your compose videos

  • @FabielCasas
    @FabielCasas 3 года назад

    good video about interoperability of compose thanks!!

  • @sosiqkwidit
    @sosiqkwidit 3 года назад

    This video was very clear and informative, thanks Mitch! Keep them coming :) !

  • @tedrinquest
    @tedrinquest 3 года назад

    Nice videos, Mitch! I always pick up a lot in a short time.

  • @rajkumarr7622
    @rajkumarr7622 3 года назад

    Hi Mitch 👋 .. I am new to this channel and your contents are really great ... I am really loving your channel and your teaching 😍❤️❤️

  • @donnfelkeryt
    @donnfelkeryt 2 года назад

    Great video. Straight and to the point.

  • @ssss-fm7ep
    @ssss-fm7ep 3 года назад

    Mitch,
    Thank you for jetpack composable series

  • @jonsnow9758
    @jonsnow9758 3 года назад

    Thanks Mitch for your video tutorials. I'm following this receipe jetpack compose course.
    Big Fan Frm #India

  • @edvardgrei6533
    @edvardgrei6533 3 года назад +1

    Waiting for KMM) Great job

  • @pundirAbhishek
    @pundirAbhishek 3 года назад +1

    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.

    • @bhuvneshvarma7843
      @bhuvneshvarma7843 3 года назад

      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??

  • @benbastami2515
    @benbastami2515 2 года назад

    nicely done, keep up the good work! thanks

  • @SyyedChawan
    @SyyedChawan 2 дня назад

    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?

  • @vladimirpavlov
    @vladimirpavlov 2 года назад

    Thank you very much Mitch, keep it up!

  • @shalinikhosla971
    @shalinikhosla971 2 года назад

    Hey mitch, thanks for the videos..its amazing

  • @haythama8563
    @haythama8563 3 года назад +1

    Thank you very much, as always very useful info ♥

  • @jeremyjarman9632
    @jeremyjarman9632 3 года назад

    Hey Mitch, thanks for your amazing content as always. Keep it up :D

  • @HimanshuHiranandani
    @HimanshuHiranandani 3 года назад

    Love the video and content overall!!! Super helpful course, thank you for doing this

  • @user-hl3br5qi6f
    @user-hl3br5qi6f 3 года назад +1

    Hey Mitch thank you for this tutorial. Hello from Ukraine 👋

  • @eiphyuphwe9269
    @eiphyuphwe9269 3 года назад

    Thanks a lot for this tutorial. I am waiting for your next lesson 🤩

  • @thomassantos7000
    @thomassantos7000 3 года назад +1

    Hey Mitch! I'm waiting for next your videos about single activity

  • @MuhammadSalman-me5ks
    @MuhammadSalman-me5ks 3 года назад +1

    enjoying the video

  • @ghZTrikz
    @ghZTrikz 2 года назад

    Thank you! So good guide! Have a happy life;)

  • @mohammadamiri384
    @mohammadamiri384 3 года назад

    Hey Mitch, thanks a lot for making this course for free🤞😂

  • @saqibmuhammad7218
    @saqibmuhammad7218 3 года назад +1

    Really Best videos

  • @Jakob_D
    @Jakob_D 3 года назад +1

    Hey Mitch, this is your engagement!
    btw no shave november is over ;)

    • @codingwithmitch
      @codingwithmitch  3 года назад

      😂 I'm keeping the facial hair alive for a little longer

  • @abeermuhammadfarooq3966
    @abeermuhammadfarooq3966 3 года назад

    you are a Good teacher

  • @alifyz
    @alifyz 2 года назад

    Great video man! keep it up.

  • @nicolagallazzi9295
    @nicolagallazzi9295 3 года назад

    Thank you very much Mitch, great course!

  • @argahutama
    @argahutama 3 года назад +1

    Hello Mitch, have a nice day 😁

  • @Sreekantbehera07
    @Sreekantbehera07 Год назад

    You are amazing.. I learnt a lot

  • @jasonhudgins8063
    @jasonhudgins8063 Год назад

    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.

  • @armandoavila4615
    @armandoavila4615 3 года назад +1

    Great video! Thank you!

  • @sebastianval1711
    @sebastianval1711 3 года назад

    Ty for the compose videos, great!

  • @tadeulanca
    @tadeulanca 3 года назад

    Thanks for the video!!! Was great and very helpful

  • @tommy9x
    @tommy9x 3 года назад +1

    How to do what you r trying to do without touching XML? pure compose?

  • @AkshatKumawat
    @AkshatKumawat 3 года назад +1

    Always awesome content ❤️

  • @mishaeliseev
    @mishaeliseev 3 года назад +1

    If you have errors "override fun prepareCall(" Answer is here - stackoverflow.com/questions/65342763/unable-to-create-fragment-class-in-jetpack-compose

    • @samha1513
      @samha1513 3 года назад +2

      thank you i was looking for this and was not able to find this issue.

  • @imashnake_7151
    @imashnake_7151 2 года назад +1

    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?

    • @qunlee7468
      @qunlee7468 2 года назад

      Yes. I agree with u.

  • @ZahidAli-zg7ut
    @ZahidAli-zg7ut 3 года назад +1

    thanks for compose video

  • @godwinntowdanso4111
    @godwinntowdanso4111 Год назад

    Thanks for the video. very helpful

  • @ashutoshsoni6473
    @ashutoshsoni6473 3 года назад

    Hey Mitch loved your content.. so good than doing all the codelabs from Google.. love yaa..🤩🤩

  •  3 года назад +1

    Great content, keep it up!

  • @leonardosibela
    @leonardosibela 3 года назад

    Great videos!!! Thanks for bringing such a nice content

  • @Gabi6six6
    @Gabi6six6 2 года назад

    Thank you for the course ;)

  • @chillwithsyuqri7804
    @chillwithsyuqri7804 Год назад

    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!

  • @calebrowley7295
    @calebrowley7295 Год назад

    Super helpful thank you!

  • @AlgeriaHere
    @AlgeriaHere 3 года назад

    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 })

    • @codingwithmitch
      @codingwithmitch  3 года назад +1

      yeah what's wrong with that

    • @AlgeriaHere
      @AlgeriaHere 3 года назад

      @@codingwithmitch i mean i just asked if that's a good approach to do that , thank you for the video

  • @kumarshubham2812
    @kumarshubham2812 3 года назад

    Thanks for such good explaination!!!

  • @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.

  • @quverr
    @quverr 2 года назад

    Hey, thank you for the video.

  • @ahmedshaaban9538
    @ahmedshaaban9538 3 года назад

    thanks alot but why horizontal progress not work if i remove CircularProgressBar ??!!!

  • @tommy9x
    @tommy9x 3 года назад +1

    Plz make playlist for Jetpack compose

  • @dmitrydemidov6112
    @dmitrydemidov6112 2 года назад

    Hey Mitch! 1. Thx! 2. How can I update the value in compose fun? In your video and other tutorials you just hardcode it.

  • @buszi_
    @buszi_ 3 года назад +1

    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

    • @codingwithmitch
      @codingwithmitch  3 года назад

      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

  • @osezelejohn3214
    @osezelejohn3214 2 года назад

    thank you kindly mitch

  • @AdWit
    @AdWit 3 года назад +1

    ContextAmbient and AmbientContext was deprecated
    Replace them with
    LocalContext.current

  • @welikan27
    @welikan27 3 года назад

    That was awesome! thanks! )

  • @mkpazon_
    @mkpazon_ 3 года назад

    Does that mean that we should be aiming to get rid of Fragments when possible when using Compose?

  • @SharkTankCanada
    @SharkTankCanada 2 года назад

    Thank you Mitch.