~/talk

TextField in Jetpack Compose: past, present and future

Talkat DevFest Berlin 2023 · on Saturday, 2023-11-25· [android, accessibility]
links:none on file
slides:none on file

Jetpack Compose now ships an alpha rewrite that replaces the old value/onValueChange loop with BasicTextField2 and a rememberTextFieldState model, breaking the fragile sync between the UI, keyboard and coordinator that previously kept three copies of state. New primitives include TextFieldBuffer (edit/insert/delete/select), input and output transformations, lineLimits, and textFieldState.asTextFlow for coroutine-friendly validation. BasicSecureTextField exists for masked input; output transformation is implemented but not yet merged to main.

AI-written summary · about

  1. 0:00Introduction to TextField in Compose
  2. 1:04Current TextField API recap
  3. 9:55Problems with current API
  4. 10:57Introducing TextField V2
  5. 11:39Basic TextField State setup
  6. 13:24Styling TextField V2
  7. 14:48Line limits configuration
  8. 15:34Observing TextField state
  9. 19:31Programmatically editing text
  10. 22:01Visual transformation overview
  11. 23:47Input transformation explained
  12. 26:12Output transformation explained
  13. 27:35Secure text field handling
  14. 30:28Future of TextField API
  15. 31:54Resources and next steps
  16. 32:15Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.