Creating Your First Jetpack Compose App - Android Jetpack Compose - Part 1

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

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

  • @matt-g-recovers
    @matt-g-recovers 3 года назад +43

    If you are new to Compose and are struggling, don't pay attention to the whole "Declarative, imperative, functional, OOP" discussion.
    I spent way too much time worrying about my ignorance in context when I knew it all along.
    Basically don't read too much into it and practice building UIs.
    Rules are the same, we favor Composition vs Inheritance (hence the name)
    We favor functional (meaning our methods return something useful vs applying side effects).
    Declarative is as simple as it sounds, boy did I overcomplicate that one...
    2 weeks and a RxJava course later (don't ask), I realized they meant just what they said.
    We declare the UI.
    Like we declare variables. no initialization or expression to evaluate, nothing to assign to anything else we just declare it.
    like this:
    Text()
    granted we add params to it, but nothing that resembles
    val text = Text()
    text.draw()
    or whatever...

  • @qwerasdfhjkio
    @qwerasdfhjkio 3 года назад +27

    NOTE: in case anyone is having issue with stuff like text not displaying at the beginning, put your phone in light mode. Everything is there but without the theme thingy it will just be all dark

  • @thekralj9600
    @thekralj9600 3 года назад +15

    i almost bought an udemy course on this, you just saved me hundred bucks, thank you man💪💪

    • @PhilippLackner
      @PhilippLackner  3 года назад +19

      who pays a hundred bucks on udemy :o But glad you like it and you're welcome :D

  • @0hscotty
    @0hscotty Год назад +5

    "Empty Compose Activity" is no longer an option on the latest version of Android Studio. Any chance we can get an updated starter video?

  • @amartyaganguly8369
    @amartyaganguly8369 3 года назад +15

    Eerily similar to SwiftUI. Except the latter works much faster in terms of live preview. Let’s hope this gets better with upcoming stable builds.

  • @anuragkanwar1844
    @anuragkanwar1844 3 года назад +21

    Love to see you back !!❤❤

  • @phyolinmg430
    @phyolinmg430 3 года назад +9

    Glad to see you back in android development SENSEI..

  • @ecavero1
    @ecavero1 7 месяцев назад

    0:18 Turns out I was!
    I was taught Android with Java and XML last year. This year, my teacher gave me a glimpse of what Jetpack Compose is.

  • @husseinchahine9456
    @husseinchahine9456 Год назад +2

    Hello, are jetpack compose videos updated? I want to start compose but i want to be sure that those videos aren’t outdated.Thanks alot

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

    Have really enjoyed your advanced tutorials. Time to go back to the basics n that's why I am here with an intention of watching the entire Jetpack Series playlist.

  • @imsherry7225
    @imsherry7225 3 года назад +19

    Our Hero is back😍 (Everybody touching Phillips like superman 😄😄😄)

  • @LokeshAhirwar-zz5cp
    @LokeshAhirwar-zz5cp 2 месяца назад +2

    I don't know will you read this comment or not , but can you please make a new playlist of jetpack compose because now we have material 3 and now jetpack is stable and has included in android studio so I hope if you could make a new playlist of jetpack compose with newest technologies.

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

      There's a separate material3 Playlist already

  • @xavier4107
    @xavier4107 Год назад +2

    Great and excellent job but truly to say, this requires more content like compose with aws integration, complex UI's, animations and sensors integration.

  • @paifgx
    @paifgx 3 года назад +8

    So if I understand it correctly, with Jetpack we have now a similar approach to Flutter, right?

    • @PrinceKumar-oi7uv
      @PrinceKumar-oi7uv 3 года назад +1

      Yes. Even some names are similar. Both are developed by Google. The advantage compose has over flutter is native-ness

  • @shaikhshafeen
    @shaikhshafeen 4 месяца назад +1

    Hi awesome man! You developed a lot!! Well wishes!
    (why commenting this on old video? 😂 I again started learning app development. I came from your 50min crash course of Jetpack Compose) Have been following you since the beginning.)

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

    Thanks for the great content. I discovered your channel by seeing your video on Brad Traversys channel. I can see why Brad decided to collaborate with you, your great at explaining concepts just like him.

  • @Shantanujaiswal-k8n
    @Shantanujaiswal-k8n 9 месяцев назад +1

    Hey @Philipp I Updated that repository of master branch and create pull request for new viewers. Now they will find updated code.

  • @Scamparelli
    @Scamparelli Год назад +2

    Love your content - hoping you talk about recommended way to structure the composables in the files.

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

    Should I switch to Jetpack compose? I am new to Android dev with Kotlin

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

    So basically, they turned the normal way into Flutter way, yes?
    What next??? Probably giving a plugin to make iOS from here itself too?

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

    All hail before Sensei Phillip!

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

    Excited for this series!

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

    hi bro
    Is this course complete for jet pack Compose ?

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

    i'm excited about jetpack...I hope this could be a great playlist

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

    The best... You! Welcome back!

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

    IS this kinda Flutter app development, like in that UI and functionality are done in the same file?

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

      Exactly, but we should still separate UI and business logic. ViewModels will still be a thing

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

    Do I need any knowledge before hand like Kotlin or Android studio or is everything explained in this course?

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

    Welcome home! Back to your friend Android

  • @3uz
    @3uz 8 месяцев назад

    Sir, just finished thw kotlin basics do i start from here or do i start from Android basics ? And wich basics the ols one or 2024 one ?

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

    Love you man❤️❤️
    Thanks for getting back to android ❤️❤️❤️😘😘😘

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

    THIS CHANGES EVERYTHING!

  • @MobileDeveloper1965
    @MobileDeveloper1965 4 дня назад

    Will you update this course?

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

    Pls also cover Material Design Components.

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

    hello.. thanks for the video. I need a video that can teach me how to create a start-up screen. please I am just a beginner.

  • @ricardomuiambojunior4816
    @ricardomuiambojunior4816 3 года назад +6

    Glad you back, nice to see you doing a compose tutorial
    Am a bit ahead of you right now (I completed Google pathway a while ago). But can't wait to see you building a fully working app with Compose.
    Also, while you decided to pursue Web development, I decided to learn flutter which is something I always wanted to know.
    I read a book about it, now am following a tutorial and then I will build my on flutter app from scratch (my aim with this is to get a good grip on DeclarativeUI development)
    And by the end of the month I plan to get back developing natively. (Dart is really ugly, flutter "is amazing" but I don't really like it, and all of the gradle errors, plus, Apple isn't very supportive, unless you own a MacBook)

    • @PhilippLackner
      @PhilippLackner  3 года назад +15

      I feel the same, Flutter is cool, but dart makes it not fun. I'd love to try out making iOS apps but I don't love to buy apple products

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

      @@PhilippLackner Really, i comes from Flutter,

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

    Just and FYI: there is installer version if you click on the "MORE DOWNLOADS"

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

    U r rocking as coding side, love to see you once again with new concept

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

    I really tried from 2 laptops but never managed to run the project. Gradle errors, compose errors, kotlin errors. So I will stick with the old way of developing.

  • @iam-learning6374
    @iam-learning6374 3 года назад +2

    Hey buddy Awesome video as always! - hope you are taking care of your health :)

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

    Welcome Backe My Friend 🧡👌

  • @AR-ok2qt
    @AR-ok2qt 3 года назад +1

    Bro is this like the future for layouts ? I am a beginner and would like to know if i should go with XML or Compose for Designing Views . Please Advise

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

    Thanks you add time slots. I can much quicker with it.

  • @ManinderSingh-rs6ix
    @ManinderSingh-rs6ix 3 месяца назад

    currently I am doing android development with kotlin and xml... I m half way in that series of Philipp. should I continue that series and then come to newer android series of Philipp and this onetoo OR should I ditch that series and go with newer series...???

    • @PrathivAR-f7l
      @PrathivAR-f7l 3 месяца назад

      if ur looking for jobs as native developer ASAP then complete that first

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

    Is it not similar to what we have in flutter to create UI?

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

    When I moved from web to android and realized there's no Css html and everything is just so organized and intuitive It was music to my eyes ahaha

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

    I'm having problems with gradle while creating a project. It says cannot install gradle from SOMEURL. I have already android studio stable and I'm running canary build side by side.. can anybody help mw out in this.. i tried many solutions from stackoverflow and other resources but it's not working out

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

    Hi Philipp. Your tutorials are so good. Thank you very much for your efforts. Can you please make a video for declarative UI or server driven UI , using jetpack compose.

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

    This is really interesting.... Waiting for next part... Thanks

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

    Nice video! regards from Argentina

  • @Kunal-jp8tn
    @Kunal-jp8tn 3 года назад

    Thank you so much. This video was very helpful...

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

    Hi sir. Can you make video related to Picture-in-Picture RUclips video playing in jetpack compose?

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

    Best tutor in the YT!

  • @ismatjafarli310
    @ismatjafarli310 6 месяцев назад

    Guys, is it worth to watch the playlist in 2024?

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

    Build fails everytime. I am getting this error:
    Execution failed for task ':app:compileDebugKotlin'.
    Can someone please help?

  • @matt-g-recovers
    @matt-g-recovers 3 года назад

    I have questions but am going to watch promise...
    So, after using this a bit is it the future?
    Is it hard to reason about?
    When people say State regarding compose or other modern UI toolkits... What exactly do they mean?
    State means so much... we have State Management(ITSM), I wrote a state machine to represent a car module,... it can be an entire snapshot like a context, or it can be one of 2 enums like( isWorking, stoppedWorking) for example.
    Are they user defined, or system wide?
    ... I will watch lol.
    Much love and respect

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

      yes, imo it's the future as this type of UI design is used pretty much everywhere (react, angular, vue.js, iOS, ...). But will take a long while until companies adapt to it, so it doesn't mean XML is deprecated or so.
      Regarding state: in the end it's any kind of value that can change over time. Can be a number, a string, an object, anything that can change. Together all your states make up how your UI looks in a very specific moment (in combination with the hardcoded stuff).

    • @matt-g-recovers
      @matt-g-recovers 3 года назад

      @@PhilippLackner Thank you so much for the time to clarify!
      That makes great sense.
      I am going to get a jump on it anyway so when the world operates this way everywhere I still understand lol.
      Cheers!

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

    Yo man you came back ❤️❤️ 👌🏻👌🏻👌🏻

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

    Welcome back Philipp :)

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

    Wow, you sure moved fast. I didn't expect for the videos to come so soon. If I am making a personal project using Hilt+Room+Retrofit+other stuff and for now I keep the UI to a minimum. Can I open later my project with the Canary version of Android Studio and replace the UI with Compose?

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

      Yea it's compatible with fragments and Android views

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

    Is it good idea to make production app using compose now? For releasing in 3 months?

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

    I think it is better to learn Flutter then jetpack compose

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

    welcome back
    I really hope you implement firebase with jetpack compose

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

      Thanks, I'm not planning to use Firebase anymore though, I really don't like it

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

      @@PhilippLackner wow i really didn't expect that

    • @s-w
      @s-w 3 года назад

      What do you prefer over firebase?

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

    Thanks.. Much waited 👍

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

    Wow welcome back 👏👏🌹🌹

  • @mohammad-hossein-farzanegan
    @mohammad-hossein-farzanegan 11 месяцев назад

    Thankful. understandably explained

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

    I'm really hoping this becomes norm. Android native XML feels ancient compared to SwiftUI and a pain in the a$$

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

    Maybe I need to be patient for later videos, but can we use this with strings.xml for localization? Do we just use getString() as usual?

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

      You can use stringResource() function

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

    Good your back on android

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

    Phillip hi, amazing videos, amazing channel, great work. Best android content on youtube.
    Are you planning to do videos about modular architecture in android?

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

    any idea for dynamic BottomSheet layouts using Compose?

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

    have you totally replaced xml with compose?

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

    welcome back

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

    Jetpack compose is not so good, I prefer XML and also the android studio needs to re-build the project on every code change

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

    Why does the preview building take so long? While trying to find whether my Modifier.padding should be 20.dp, or 24.dp, or 22.dp, I took leggit 5 mins.

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

      It's super buggy atm, that's why I directly launch the app in the emulator

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

    can't wait for part 2

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

      I'll give my best to return to a 2-day video frequency again :)

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

    Welcome back ❤

  • @sujayshanbhag2055
    @sujayshanbhag2055 6 месяцев назад

    Hey guys is this playlist still good for 2024? I am trying to learn jetpack compose now. Please reply.

    • @56_shekharshinde84
      @56_shekharshinde84 4 месяца назад

      Yeah its pretty good, compose have not got any major update since then. In fact most people are thinking about learning it now only

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

    ♥️♥️♥️♥️♥️ thank you so much Brother .. love you 😘😘🥰

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

    this will change every thing like recycle view ?

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

    Happiness start from here😋

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

    I hope the you consider shwoing us State in Composeables
    and hkw to work wigh ViewModels
    bacause the example in the Docs is not really clear ❤✌🏼

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

    I am creating a new project in kotlin so i think I make it using jetpack compose so if i do so then all libraries are available in jetpack or for currently i have to use MVVM? Your answer is very important and useful Thank you

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

    Great thanks for the update

  •  3 года назад

    Bro drawble are also in kotlin and not in XML?

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

    4:47 "which will just take a few hours to finish building". Lol did I hear that right?

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

      yeah i went crazy lol

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

    you are back!!

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

    Do you think it makes sense to switch a productive app to jetpack compose ?

  • @praveenvinopv9929
    @praveenvinopv9929 3 года назад +9

    Looks like flutter

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

    I am wondering how to get the visual preview of a phone showing. There seems to be some steps not shown here, otherwise i like the content!

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

      what do you mean with visual preview of a phone?

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

      @@PhilippLackner Sorry for being unclear. The visual preview of the phone on your screens right side! :) like what you setup to get it to show, it's a text only for me

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

      You mean the android emulator or what? If that's new to you, I can recommend to watch my android fundamentals Playlist first, this is not an absolute beginners Playlist here :)

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

      @@PhilippLackner Yes! Perfect! Thank your for your answer

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

    2k21 begins !❤️

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

      Let's spread some compose in between all that corona shit

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

    Thank you Philip

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

    Such a great content ! Germans should make you chancellor of deutchland sir!

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

    Please make Google Maps API Tutorial

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

    Camping for more of this 😊

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

    Good to see you back Philip!!!

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

    I think this things going to support hot reload in future

  • @FuadGarayev-q4d
    @FuadGarayev-q4d 3 года назад

    Does this version of Android studio available only for Windows?im using Ubuntu btw

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

      no, you can download it for mac and linux as well, it's a little hidden: developer.android.com/studio/archive

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

    Good Video

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

    ooooooooh welcome back

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

    Mantap bang !!!

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

    Thank you brather