0Pricing
Jetpack Compose Academy · Lesson

TextField & OutlinedTextField

Read what the user types.

Why Text Fields Matter

Almost every app asks the user to type something. In Compose, the TextField is your gateway to reading that input. ✏️

The TextField Composable

A TextField shows an editable box. It needs a current value and a callback that fires every time the text changes.

TextField(
    value = name,
    onValueChange = { name = it }
)

All lessons in this course

  1. TextField & OutlinedTextField
  2. Labels, Placeholders & Leading Icons
  3. Keyboard Types & IME Actions
  4. Inline Validation & Error States
← Back to Jetpack Compose Academy