Jetpack Compose Made Easy: User Input, State, and Lifecycle Explained!
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)
Was waiting for your video. Keep this series alive!! Thanks
Thank you for the support! There's lots more to come.
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. ❤
Thank you, I appreciate it! Lots more to come!
Great Explanation!
Hopefully KMP catches on 🙂
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.
Loving this series
Thank you!
Hey my main man Max, please release the next video in the series 😊 planning to follow along
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😁
Bro if you do a beginner series I’m in you explain very well
Thank you, lots more content coming!
Subscribed - Your explanations are fantastic and I want to support your channel. I will be looking through your content for more advanced topics.
Thank you, I appreciate it! Lots more content to come!