Back to Browse

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

1.7K views
Jun 25, 2024
12:01

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: https://github.com/MaxLangleyDev/ComposeAbsoluteBeginnersGuide/blob/main/BeginnerGuide_Part2_StartingPoint.zip (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: https://www.youtube.com/watch?v=B8Kj-TONzkg Watch the previous episode of my Compose beginners guide here: https://www.youtube.com/watch?v=f5ZeooUn0wg Additional Reading: https://developer.android.com/develop/ui/compose/lifecycle https://developer.android.com/develop/ui/compose/text/user-input 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)

Download

1 formats

Video Formats

360pmp419.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

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