Jetpack Compose Made Easy: User Input, State, and Lifecycle Explained!

Sdílet
Vložit
  • čas přidán 28. 07. 2024
  • From "Hello, World!" to a dynamic application! In this video, we build upon our previous lesson by adding user input to our simple Compose app. In doing so, we take a deep look into state and the Compose lifecycle.
    Empty Project Starting Point:
    github.com/MaxLangleyDev/Comp...
    (Select the three dots on the right and click "download")
    If you're having trouble setting up your project, you can follow my step-by-step project setup guide here: • Make Apps for Android,...
    Watch the previous episode of my Compose beginners guide here:
    • Beginner's Guide to Co...
    Additional Reading:
    developer.android.com/develop...
    developer.android.com/develop...
    Timestamps:
    0:00 - Intro
    0:25 - What is "State"?
    0:52 - How to add state to our App
    1:18 - Compose Lifecycle and Recomposition
    2:25 - The "remember" Function
    2:51 - The "mutableStateOf" Function
    3:44 - User Input
    3:57 - Adding An OutlinedTextField
    5:22 - Adding A Button
    6:35 - Adding Spacers to the Layout
    7:30 - Running the App
    7:46 - Checking the Layout Inspector
    10:14 - Cleaning Up With The "by" Delegate
    11:19 - Closing Thoughts (MVVM Teaser)

Komentáře • 14

  • @atharv5432
    @atharv5432 Před měsícem +3

    Was waiting for your video. Keep this series alive!! Thanks

  • @ravivarma9344
    @ravivarma9344 Před měsícem +2

    I'm very excited to learn more about Jetpack compose, the way you teach is mind blowing, the way you explain each line of code that's amazing, I never seen instructor like you on CZcams. ❤

  • @ajesh-mishra
    @ajesh-mishra Před měsícem +2

    Great Explanation!
    Hopefully KMP catches on 🙂

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

      Thank you!
      I hope so, too. KMP, especially with Compose Multiplatform, is such a great tool set. There will always be native development, but for me, being able to build apps for desktop, web, and mobile, all in Kotlin, will always be too good to pass up.

  • @chueypickle
    @chueypickle Před měsícem +2

    Loving this series

  • @ajesh-mishra
    @ajesh-mishra Před 21 dnem

    Hey my main man Max, please release the next video in the series 😊 planning to follow along

    • @MaximumDevelopment
      @MaximumDevelopment  Před 21 dnem

      I apologize for the delay, I've been on holiday the last week. The follow up video is being split into two parts, a conceptual overview of MVVM, and a practical demonstration in Compose Multiplatform. Both will be released as soon as possible. Thank you for your patience😁

  • @FabricioMTL
    @FabricioMTL Před 27 dny +1

    Bro if you do a beginner series I’m in you explain very well

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

    Subscribed - Your explanations are fantastic and I want to support your channel. I will be looking through your content for more advanced topics.