> Documentation index: https://developer.android.com/courses/llms.txt

# Interacting with UI and state


Create a tip calculator app that calculates the tip from user input in the app.  


Go back

## Understanding state in Compose

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Video *Optional*

Welcome to pathway 3! In this pathway, you will learn how to work with state in Jetpack Compose.

<button class="playlist-skip gc-analytics-event" data-category="devsite-playlist: skip button"> Skip </button>

## Intro to tip calculator

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Video *Optional*

In this pathway, you will build an app that will help you calculate the tip amount the next time you need to tip.

<button class="playlist-skip gc-analytics-event" data-category="devsite-playlist: skip button"> Skip </button>

## Intro to state in Compose

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

Learn about state, and how it can be used and manipulated by Jetpack Compose.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-using-state)

## Calculate a custom tip

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

Learn how to add an action button, set up keyboard actions, and use a Switch composable.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-calculate-tip)

## Write automated tests

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

In this codelab, you'll learn what automated tests are, why they are important, and how to write them.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-write-automated-tests)

## Project: Create an Art Space app

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

Learn how to create an Android app that showcases your own art space.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-art-space)

## What's next?

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Video *Optional*

Congratulations on completing the second unit in the course! In this unit you learned important topics on Kotlin and built interactive apps that respond to a button click and accept input from a text field! Give yourself a pat on the back! You did a great job!

<button class="playlist-skip gc-analytics-event" data-category="devsite-playlist: skip button"> Skip </button>

## Quiz

Test your knowledge of UI and state, and earn your Interacting with UI and state badge.
[Take the quiz](https://developer.android.com/courses/quizzes/android-basics-compose-unit-2-pathway-3/android-basics-compose-unit-2-pathway-3.md.txt)