THIS Is How You Create Custom Modifiers in Jetpack Compose - Android Studio Tutorial

Sdílet
Vložit
  • čas přidán 15. 10. 2022
  • With custom Jetpack Compose modifiers, you can easily define reusable behavior for multiple composables. In this video I'll show you how you can use them in your UI.
    Learn how to use Canvas in Android:
    pl-coding.com/canvas-masterclass
    💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:
    pl-coding.com/drop-table-ment...
    Subscribe to my FREE newsletter for regular Android, Kotlin & Architecture advice!
    pl-coding.com/newsletter
    Join my Discord server:
    / discord
    Regular programming advice on my Instagram page: / _philipplackner_
    Checkout my GitHub: github.com/philipplackner
    You like my free content? Here you can buy me a coffee:
    www.buymeacoffee.com/philippl...

Komentáře • 39

  • @Mrat121
    @Mrat121 Před rokem +8

    Top tier content, as always. 🙌

  • @sebastianseno9285
    @sebastianseno9285 Před rokem +2

    so basically it's just kotlin extensions, thanks for your sharing, now my code will more clean

  • @amirhosseinghafoorian5256

    simple but super helpful , thanks a lot

  • @maxterminatorx
    @maxterminatorx Před rokem

    thanks bro, I think I already follow your channel 3 years and I learned a lot.

  • @oubihinoureddine9025
    @oubihinoureddine9025 Před rokem

    Best android content on the Internet

  • @anasfarhad2845
    @anasfarhad2845 Před rokem

    Amazing content, as always

  • @khapp7821
    @khapp7821 Před rokem

    Today fav. mentor's look with the setup is really cool 👌

  • @Denis0Kor
    @Denis0Kor Před rokem

    Thanks again for useful video!

  • @John-qt6qk
    @John-qt6qk Před rokem +1

    Thanks, I'll have it on mind 😁

  • @abada-s
    @abada-s Před rokem

    Great benefits 🔥🔥

  • @ch1pkavarenychenko84
    @ch1pkavarenychenko84 Před rokem

    tnx, it's very helpful

  • @kyleMcBurnett
    @kyleMcBurnett Před rokem

    Why did I think of this? Thank you so much.

  • @unaisulhadi9102
    @unaisulhadi9102 Před rokem

    Amazing bro ❣

  • @safionweb
    @safionweb Před rokem

    Amazing 🔥

  • @maskedredstonerproz
    @maskedredstonerproz Před rokem +2

    This is awesome, idk why I never imagined this was possible, it's kotlin android, what ISN'T possible??

  • @yousefbeiruty6417
    @yousefbeiruty6417 Před rokem +2

    Legend I firstly stuck alot on compose but after practicing I discovered how is more effective and efficient than xml the dynamic way we could use the composables functions is amazing thank you for your effort could you make some tutorials on graphQl ....👏

  • @Rafael-hk9pg
    @Rafael-hk9pg Před rokem

    Great video, thanks again! Could you make a video on how you trigger animations in screen X when you've done something in screen Y?

  • @ezekielwachira1691
    @ezekielwachira1691 Před rokem

    Very helpful. thanks.

    • @TheKamble
      @TheKamble Před rokem

      Hello Ezekiel, good to come across you, think we can link up and do some work together?

  • @dipeshsaini04
    @dipeshsaini04 Před rokem

    Helpful 😍😍

  • @ashokmanis2111
    @ashokmanis2111 Před rokem

    Looks like we are creating custom style..looks interesting..

  • @terencejumba1939
    @terencejumba1939 Před rokem

    nice content

  • @David-zb8br
    @David-zb8br Před 6 měsíci

    Hey Philipp, could you please remake this but using the new modifier Node method instead? Since the composed {} api is not the recommended way anymore thanks!

  • @eugeng.7044
    @eugeng.7044 Před rokem

    Danke (:

  • @fabiorosati7830
    @fabiorosati7830 Před 23 dny

    Anyone knows how to do this if I want to use "weight" as a modifier parameter? It can only be used in RowScope or ColumnScope, hence I can't simply exted Modifier as in this video

  • @Omer-es7wo
    @Omer-es7wo Před rokem

    🙏🙏

  • @demondroid1
    @demondroid1 Před rokem

    raw folder and assets folder any diff

  • @shock1136
    @shock1136 Před rokem

    May I ask what the benefits of using custom modifiers are?

  • @emmanuelmtera5936
    @emmanuelmtera5936 Před rokem

    I was wondering how to draw live movable rects or boundingBox that follow objects e.tc using the canvas

    • @PhilippLackner
      @PhilippLackner  Před rokem

      This answers all your questions :)
      pl-coding.com/canvas-masterclass/

  • @ankitverma3932
    @ankitverma3932 Před rokem

    Please make a translator app using firebase ML kit

  • @zeyadabdo1964
    @zeyadabdo1964 Před rokem

    Do I need to mention the coroutine dispatcher while working with Retrofit and Room?

  • @Kenshin163
    @Kenshin163 Před rokem

    shouldn't animations use the lambda version of the graphicsLayer modifier?

    • @PhilippLackner
      @PhilippLackner  Před rokem

      Why would that make a difference?

    • @Kenshin163
      @Kenshin163 Před rokem +2

      @@PhilippLackner because according to documentation it states that we should "Prefer this version when you have layer properties backed by a androidx.compose.runtime.State or an animated value as reading a state inside block will only cause the layer properties update without triggering recomposition and relayout."