1. This work is licensed under the Apache 2.0 License
Compose Camp
Android Basics with Compose
Unit 2 Pathway 2
2. This work is licensed under the Apache 2.0 License
Welcome Back
Any Questions
3. This work is licensed under the Apache 2.0 License
TOPIC TIME
Create a Dice Roller App 0:00 - 0:00
Debugger in Android Studio 0:00 - 0:00
Interacting with UI using state 0:00 - 0:00
Create a Tip Calculator App 0:00 - 0:00
Write Automated Tests 0:00 - 0:00
Wrap Up 0:00 - 0:00
Today’s Schedule
4. This work is licensed under the Apache 2.0 License
Android basics
with Compose
course
5. This work is licensed under the Apache 2.0 License
Create a Dice Roller App
Hands-on project with Jetpack Compose
6. This work is licensed under the Apache 2.0 License
Debugger in android is a very powerful tool which
allows the developer to deep dive into the
application to look into an error and solve it. It is also
used by other developers to understand the flow
control and behaviour of the application.
Debugger in Android
7. This work is licensed under the Apache 2.0 License
State is any value that can change over
time. By default, composables do not
remember their state.
Understanding State
in Jetpack Compose
8. This work is licensed under the Apache 2.0 License
Before understanding how state is
maintained, let’s take a sneak peek at
how composition works.
How recomposition
works??
9. This work is licensed under the Apache 2.0 License
Composable function can store objects
across compositions using the
remember function.
A value computed by remember is
stored during composition and is
remembered during recomposition.
remember() function
10. This work is licensed under the Apache 2.0 License
mutableStateOf()
function
The mutableStateOf() function creates
an absorbable state holder that allows
Compose to observe the change and
trigger recomposition.
11. This work is licensed under the Apache 2.0 License
Extracting the state from a local
composable function to a parent
composable function is called state hoisting.
State Hoisting
12. This work is licensed under the Apache 2.0 License
Create a Tip Calculator App
Hands-on using Jetpack Compose
14. This work is licensed under the Apache 2.0 License
Share what you’ve
learned using
.#ComposeCamp
on Twitter
For a chance to be
featured by Android,
submit your tips on
learning Compose to
goo.gle/compose-tips
15. This work is licensed under the Apache 2.0 License
See you at the next Compose Camp Session!
Optional resources to check out:
Official Android Developers Site: developer.android.com
Official Android Developers Blog (for announcements)
Android Developers Medium Blog (for more technical articles)
Android Developers YouTube Channel
Follow @AndroidDev on Twitter
Follow @AndroidDev on LinkedIn
Subscribe to Android Developer Newsletter