The Jetpack Compose Beginner Crash Course for 2023 💻 (Android Studio Tutorial)

Sdílet
Vložit
  • čas přidán 31. 01. 2023
  • In this video you'll learn Jetpack Compose from the beginning on to be able to build basic UI. Watch this if you're an absolute beginner with Compose and want to know how to use it.
    ⭐ Get certificates for your future job
    ⭐ Save countless hours of time
    ⭐ 100% money back guarantee for 30 days
    ⭐ Become a professional Android developer now:
    pl-coding.com/premium-courses/
    💻 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 this channel to get access to perks:
    / @philipplackner
    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 • 237

  • @bharatpanjwani8518
    @bharatpanjwani8518 Před rokem +127

    Hey Man,
    You doing a great job by providing these aesthetic tutorials free of cost, keep up the good work!

  • @grimreaper7059
    @grimreaper7059 Před rokem +71

    A lot of tutorials online and on youtube tend to be code-along style which is often bad for new learners. Most of the stuff end up forgotten and many features already used in code are unknown to them too. Like how to write first unit tests (but the test example code has DI, Room, MVVM etc). Better way would be how to write tests for basic sum methods , then for basic gestures , then for the view model and so on . Simple things first are the best way to go before more intermediate and practical stuff. Cheat-sheets are gold too. Tutorials covering them even more so . Video like this crash course is quite great .

  • @udaysharma5228
    @udaysharma5228 Před 11 měsíci +13

    To the point and no nonsense! I will keep this in my favourite list to revise the course when ever I need. Thank you Philipp!

  • @nero1375
    @nero1375 Před rokem +13

    Composable is very easy to understand if someone already had played with Dart/Flutter. Thanks for this Crash course!

  • @Imperial_Dynamics
    @Imperial_Dynamics Před 8 měsíci

    hi from Greece. You were the one who introduced me to xml and now you are the one who introduced me to compose. You explain things very well and the pace is just right. THANK YOU.

  • @volkovolko5778
    @volkovolko5778 Před rokem +8

    For those who have issues with the newer versions, I found the issue (you need to remove the .fillMaxSize() of the Row and add it to the LazyColumn) :
    here is a repaired script :
    package com.example.myapplication
    import android.os.Bundle
    import android.util.Log
    import androidx.activity.ComponentActivity
    import androidx.activity.compose.setContent
    import androidx.compose.foundation.Image
    import androidx.compose.foundation.layout.Arrangement
    import androidx.compose.foundation.layout.Column
    import androidx.compose.foundation.layout.Row
    import androidx.compose.foundation.layout.Spacer
    import androidx.compose.foundation.layout.fillMaxHeight
    import androidx.compose.foundation.layout.fillMaxSize
    import androidx.compose.foundation.layout.padding
    import androidx.compose.foundation.layout.width
    import androidx.compose.foundation.lazy.LazyColumn
    import androidx.compose.foundation.lazy.LazyRow
    import androidx.compose.foundation.lazy.items
    import androidx.compose.foundation.text.BasicText
    import androidx.compose.material.icons.Icons
    import androidx.compose.material.icons.filled.Add
    import androidx.compose.material3.Button
    import androidx.compose.material3.ExperimentalMaterial3Api
    import androidx.compose.material3.Icon
    import androidx.compose.material3.MaterialTheme
    import androidx.compose.material3.OutlinedTextField
    import androidx.compose.material3.Surface
    import androidx.compose.material3.Text
    import androidx.compose.runtime.Composable
    import androidx.compose.runtime.getValue
    import androidx.compose.runtime.mutableStateOf
    import androidx.compose.runtime.remember
    import androidx.compose.runtime.setValue
    import androidx.compose.ui.Alignment
    import androidx.compose.ui.Modifier
    import androidx.compose.ui.graphics.Color
    import androidx.compose.ui.graphics.Outline
    import androidx.compose.ui.res.painterResource
    import androidx.compose.ui.text.TextStyle
    import androidx.compose.ui.tooling.preview.Preview
    import androidx.compose.ui.unit.TextUnit
    import androidx.compose.ui.unit.dp
    import androidx.compose.ui.unit.sp
    import com.example.myapplication.ui.theme.MyApplicationTheme
    class MainActivity : ComponentActivity() {
    @OptIn(ExperimentalMaterial3Api::class)
    override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContent {
    MyApplicationTheme {
    var name by remember {
    mutableStateOf("")
    }
    var names by remember {
    mutableStateOf(listOf())
    }
    Column(
    modifier = Modifier.fillMaxSize()
    )
    {
    Row (
    ){
    OutlinedTextField(
    value = name,
    onValueChange = {text ->
    name = text},
    modifier = Modifier.weight(1f)
    )
    Spacer(modifier = Modifier.width(16.dp))
    Button(onClick = {
    if(name.isNotBlank()){
    names += name
    }
    }) {
    Text(text = "Add")
    Icon(imageVector = Icons.Default.Add, contentDescription = "")
    }
    }
    LazyColumn(modifier = Modifier.fillMaxSize()){
    items(names){currentName->
    Log.d("COMPOSE", "This get rendered $currentName")
    Text(
    text = currentName,
    modifier = Modifier.fillMaxSize().padding(16.dp)
    )
    }
    }
    }
    }
    }
    }
    }

  • @Aspiret620
    @Aspiret620 Před rokem +26

    Philipp, just wanna say big big thanks for your contributions you are really making a big difference in people's lives and for android development in general. I finally got an android job a month ago and your videos helped me big time through my journey. I am currently refactoring code with bad practices and your big focus on patterns and good code is making a difference even here in Sweden. Next I wanted to learn jetpack compose and boom, you come with an awesomely packaged video. Thanks again man and looking forward to more content.

  • @David-zb8br
    @David-zb8br Před rokem +3

    Man, i wish this type of vid was abailable on yt when i was just starting, this will be very helpful to new compose learners.
    Great content as always philipp

  • @Rajmanov
    @Rajmanov Před rokem +4

    Thank you man, you make this community great!

  • @hossamqandel5303
    @hossamqandel5303 Před rokem +5

    No matter how much I thank you, I will never give you the thanks you really deserve, Philip ♥️ You are truly a person of great value to the Android and mobile developer community in general I wish you all the best and give us more ♥️🙏🇪🇬

  • @daffanashwanpramono4149
    @daffanashwanpramono4149 Před rokem +1

    My senior recommends your channel for Compose tutorial, and this is just so easy to understand. Much thanks for the tutorial :D

  • @SouthernPole
    @SouthernPole Před rokem +4

    I am waiting for tutorials like this, thanks 👍

  • @haxificality
    @haxificality Před rokem +1

    Thank you for this! I totally understand how advantageous Compose is compared to the old style. Now it's Compose for me all the way.

  • @scottbiggs8894
    @scottbiggs8894 Před 7 měsíci

    Hands down the best instruction I've seen on jetpack compose. And I've seen tons of vids and scads of websites. Thank you!

  • @serlok4688
    @serlok4688 Před rokem +1

    I've just started your compose play list. it's good you uploaded it thanks

  • @GTA_33
    @GTA_33 Před rokem +10

    I am from india and i loved ur content i started ur playlist from basics of kotlin... And ur way of explaning concept is ossum
    . thanks for this ossum content .....🔥🔥🔥🔥

  • @prasadsawant9122
    @prasadsawant9122 Před 9 měsíci +2

    Best android introduction, straight to point and gives you idea about how things work ui wise , how ui renders , kind of give beginners like me a starting point to explore. Just want to say thank you very much man, and really appreciate all of your efforts.

  • @jam54
    @jam54 Před 10 měsíci +4

    Great tutorial, was really helpful! Thanks for taking the time to compile all of the fundamental topics into 1 concise easy to understand video

  • @Kaif_Ali_8302
    @Kaif_Ali_8302 Před 3 měsíci

    Using jetpack after a long time, needed the revision. Your video was a great help as it covers most of the points without wasting any time.

  • @begmyratmammedov9357
    @begmyratmammedov9357 Před rokem +2

    Thank you Philipp, this is so amazing tutorial with well summarized version of jetpack compose course. Great Work!!!

  • @user-tz1dg4so1i
    @user-tz1dg4so1i Před 5 měsíci

    Thank you so much for making this great tutorial!!!
    i have been wanting to create apps for so long
    and i never really liked the way designing UI worked,
    and i LOVE this way using code to make UI!

  • @MaxProgramming
    @MaxProgramming Před rokem +6

    This is exactly what I needed in native Android development! The syntax is so cool and easy to understand if you are familiar with React or Flutter. Much better than XML of course! I think I might go all in native if I continue to use Jetpack Compose!
    Thanks a lot Phillip!

    • @yassinesafraoui
      @yassinesafraoui Před rokem +3

      yes it's a lot like flutter, which is one of its big advantages, it's just so simple to create layouts this way

  • @manjaro675
    @manjaro675 Před rokem +2

    Great timing! Am actually converting an existing project from flutter to native for better performance and control of device sensors.

  • @vibhuvineet
    @vibhuvineet Před 11 měsíci +1

    Certainly found it helpful, very clear explanation. A huge thumbsup for the content.

  • @user-dk4dl6pe1x
    @user-dk4dl6pe1x Před 2 měsíci +1

    i never worked with Compose, and just a little bit with XML. Also i started to learn Kotlin. And as an Professional Java Developer i can say: This Video is Awesom, with Compose App-Development feels easier like never before!
    Also i like that you share your knowlege with us! Good Job!

  • @OCEH6
    @OCEH6 Před rokem +1

    Awesome! So cool! You and Compose is Amazing!

  • @flaviocatuara7488
    @flaviocatuara7488 Před rokem +1

    Thank you as always Philipp Great job. Very useful

  • @pengottv589
    @pengottv589 Před 10 měsíci

    Insane Video, Thank you very much for the introduction to Jetpack Compose!
    Your free content helped me so much! Thanks for everything Philipp.

  • @andersmembers1309
    @andersmembers1309 Před rokem +1

    stumbled onto this, but it's really great!

  • @wilsonpedrotamegajunior1053
    @wilsonpedrotamegajunior1053 Před 4 měsíci

    This video is very, very clear and easy to follow and understand. I'm very, very thankful for you, it makes me to start get the idea of jetpack compose, and for sure this is the future of Android UI Design

  • @user-pz3fm5tb9c
    @user-pz3fm5tb9c Před 8 měsíci +3

    Man, you've just inspired one more person to get back to his projects. I mean its illegal for recycler view to be so simple. You've got a talent to teach things.

  • @mihaes7172
    @mihaes7172 Před rokem +1

    Thanks for this video, much valuable as I am entering this Kotlin - jetpack world from Php

  • @mikethemonsta15
    @mikethemonsta15 Před 11 měsíci +1

    Excellent! Thank you so much this really helped me

  • @niazsagor3241
    @niazsagor3241 Před 7 měsíci

    Thank you Phillipp for these videos. These are gem.

  • @MaximusMcCullough
    @MaximusMcCullough Před 7 měsíci

    Totally awesome! Thank you for this information.

  • @manishprajapati8544
    @manishprajapati8544 Před rokem +2

    Amazing tutorial Bro, This introduction was really simple and helpful with clarity Thank you 🙏🙏

  • @loveyouself5389
    @loveyouself5389 Před 11 dny

    Thank you so much philip 💕💕

  • @stockiber7656
    @stockiber7656 Před rokem +2

    Hey, Philipp. Danke dir für all deine tollen Videos!! Du erklärst super gut und hilfst mir so sehr in verschiedene Topics einzusteigen und zu wissen, was man alles können sollte, um eine gute Android Developerin zu werden.

  • @MRBala-xx5si
    @MRBala-xx5si Před 10 měsíci

    Thanks Philipp . You gave a better start to me.

  • @ruslanpodurets6289
    @ruslanpodurets6289 Před 6 měsíci

    Thank you so much, great examples!!

  • @henriquepetters
    @henriquepetters Před rokem +2

    Do more compose content, i see a lot of devs struggling with it. And i can totally relate, i'm glad i dived head first when it came out.

  • @williamgiraldo996
    @williamgiraldo996 Před rokem +1

    Thank you, this is great to start on jetpack compose

  • @malikkahfi2534
    @malikkahfi2534 Před rokem +1

    Love this 😍

  • @eazyfrizzy7983
    @eazyfrizzy7983 Před 11 měsíci +1

    From watching this video i learned a lot about compose. Thanks keep it up

  • @ninshan
    @ninshan Před 12 dny

    Thanks m8. Really good content

  • @lvterry
    @lvterry Před 4 měsíci

    Thanks for the course!

  • @firefed
    @firefed Před 11 měsíci +1

    Thank you, that helped me to learn the basics

  • @justmeagain9302
    @justmeagain9302 Před rokem +1

    Thanks man, very helpful

  • @saragadamsuresh
    @saragadamsuresh Před měsícem

    recompose-able is explained flawlessly, i am new to android, i am afraid of getting a start with android, and this lecture gave more insight into the Jetpack compose over xml views and to get started with android app development with ease and confidence. Lazy rendering is explained perfectly, earlier when i am using neovim editor i was getting confused about the buzz word lazy loading..hear you have explained this concept so simply...Thank you very much Philipp.

  • @vismal2007
    @vismal2007 Před 9 měsíci

    Thanks man, very good content!

  • @fuzzy-02
    @fuzzy-02 Před 3 měsíci

    This tutorial was just great to get me up and going.
    I learned Java and XML in my uni course but I thought it would be better to switch to Kotlin and JetCompose.
    Thanks a lot for this man! Its much better than the tutorials on the android website

  • @ndanielamaha5618
    @ndanielamaha5618 Před rokem +1

    Thank you bro, very succinct and sweet summary

  • @sraldous
    @sraldous Před 9 měsíci

    Great tutorial, easy to follow, thank you!

  • @Dibyendu.M
    @Dibyendu.M Před rokem +1

    Thank You, Philipp!

  • @kirgo4720z
    @kirgo4720z Před 10 měsíci

    Thanks a lot for this video! Its brilliant! So understandable!

  • @marcinzale
    @marcinzale Před rokem +1

    Great! Thanks!

  • @ralphm.881
    @ralphm.881 Před 7 měsíci

    This is exactly what I needed, thank you! Returning to Android development after not doing it for a few years, I was like, "What the heck is this Composable stuff?!"

  • @kyeiiih4422
    @kyeiiih4422 Před rokem +1

    Amazing Content Phillip.

  • @pikazap6672
    @pikazap6672 Před rokem +1

    Thank you Philipp!! :3

  • @goblin69_420
    @goblin69_420 Před 6 měsíci

    This new UI way seemed a little mixture of flutter and react and I love this

  • @user-li7gw9vw4g
    @user-li7gw9vw4g Před 5 měsíci

    It's really helped me, Thanks.

  • @AO-kg3tk
    @AO-kg3tk Před 7 měsíci

    Really helps a lot.

  • @ezekielwachira1691
    @ezekielwachira1691 Před rokem +1

    Always top content 💯

  • @vilmarcabanero2500
    @vilmarcabanero2500 Před rokem +1

    Amazing!

  • @trickydotworld
    @trickydotworld Před měsícem

    Thank you very much for this great tutorial.

  • @accessaccount4719
    @accessaccount4719 Před 2 měsíci

    Thanks Man ❤

  • @oogway_hussein
    @oogway_hussein Před 6 měsíci

    I needed this

  • @eliasshemsu5853
    @eliasshemsu5853 Před 2 měsíci

    Thank you for the tutorial.

  • @fayzulbari4748
    @fayzulbari4748 Před 9 měsíci

    Nice work bro hitting the subscribe button

  • @ellamaria187
    @ellamaria187 Před 4 měsíci

    Thank you for this.

  • @hobynist
    @hobynist Před 9 měsíci

    Came here to find out what is jetpack compose. And got the answer, thanks!

  • @gian-marco6047
    @gian-marco6047 Před 9 měsíci

    Thank you so much!

  • @manishakamble7473
    @manishakamble7473 Před 20 dny

    Very informative and clear 👍

  • @SupaTee
    @SupaTee Před 4 měsíci

    Thanks ... excellent tutorial

  • @dabert5972
    @dabert5972 Před 23 dny

    PHILLIPP YOU ARE THE MAN

  • @Thaizer
    @Thaizer Před 8 měsíci

    Hi,
    I'm a c# programmer (Xamarin)
    Was curious about Android programming with Kotlin.
    Thanks for your good videos they help me a lot.

  • @undeadredemption_
    @undeadredemption_ Před 3 měsíci

    Thank you🙌🙌🙌

  • @ewanorr
    @ewanorr Před 5 měsíci

    Thank you for this excellent tutorial.

  • @alleecel.4888
    @alleecel.4888 Před 6 měsíci

    Wonderful 👍

  • @jamsberries
    @jamsberries Před 7 měsíci

    Thanks for teaching me Compose, Ludwig

  • @stasleonov5196
    @stasleonov5196 Před 5 měsíci

    your are just the best!

  • @Narazgul
    @Narazgul Před rokem +11

    Hey Philipp, ich hab bei dir häufig das Gefühl, dass du genau das Video machst, was ich in diesem Moment brauche. Nicht nur hier, sondern auch in vielen anderen Fällen in der Vergangenheit. Auch deine Shorts sind fast immer hilfreich! Vielen Dank für deinen absoluten top content!

  • @valeryegorov2616
    @valeryegorov2616 Před rokem +1

    The Best Android Teacher!

  • @oliveryt7168
    @oliveryt7168 Před měsícem

    A good tutorial for beginners!

  • @greatestmoviesounds
    @greatestmoviesounds Před 2 měsíci

    I am Learning Compose, and Unlike many other ways of learning I have used before, I find mixing the Docs and Your tutorials Yours only, to be working. I dont want to go into the tutorial loop just yet, maybe later on when I get most of the basic conepts and can now make the skills as diverse as they can be

  • @user-rr3yz9mx8x
    @user-rr3yz9mx8x Před 5 měsíci

    One of the best tutorials for compose beginners

  • @DyotakT
    @DyotakT Před 4 měsíci +1

    Hey Philip,
    Amazing job! This is so much better than the official videos provided by Google.
    Thank you! Keep it up. :D

  • @philipjanbaruis7040
    @philipjanbaruis7040 Před rokem +1

    Thank you so much

  • @sanjaybhatikar
    @sanjaybhatikar Před 11 měsíci +2

    Thanks for the video. Does mutableStateOf replace data bindings? Or is it possible to use data bindings with compose UI elements as well?

  • @user-uy8rw4yw1t
    @user-uy8rw4yw1t Před 11 měsíci +2

    It's your the best video!!! And it's the best video in the history of online programming teaching!!!

  • @nikinsk
    @nikinsk Před rokem +1

    Nice and Epic video for Jetpack compose learners

  • @akashmadanu3994
    @akashmadanu3994 Před rokem +2

    Phillipp, Thanks for your excellent content,
    if you make an entire Android course and Upload it to Udemy/CZcams, which is ok if it is paid course which includes all basics and some projects that help many Android (jetpack) learners, you have a 10 week course on your official site. Still, as a student, that is not affordable, hope you keep this in your mind and make an excellent android course that can be enrolled by even students. Thank you again for your great content; I love you so much.

  • @thepathakarpit
    @thepathakarpit Před 3 měsíci

    Awesome

  • @artianrika8329
    @artianrika8329 Před 3 měsíci

    thanks King

  • @mracipayam
    @mracipayam Před rokem +1

    it was greate explanation!

  • @aliakkawi4759
    @aliakkawi4759 Před rokem +1

    Thanks

  • @cs-ope
    @cs-ope Před rokem +1

    Just what i need

    • @cs-ope
      @cs-ope Před rokem

      Googles tutorial just overcomplicates things

  • @CulbladeStudio
    @CulbladeStudio Před rokem +1

    Great course. Just wondering what version Android Studio you using?

  • @jayshartzer844
    @jayshartzer844 Před rokem +2

    When I see an Android tutorial from another CZcamsr:
    "Impressive. Very nice.
    Lets see Philipp Lackner's version"

  • @typosbro_
    @typosbro_ Před 6 měsíci +1

    Compose feels like Flutter which was inspired by React Native which a variation of React which was created a decade ago.
    I'm new to Android dev btw😇