~/talk

Styling text in Compose

Talkat Android Dev Summit 2022 · 2022-10-24..11-14· [android, css]
links:none on file
slides:none on file

Jetchat is modified to match a Material 3 design: typography is overridden with custom TextStyle blocks and buttons inherit LocalTextStyle; message bubbles use maxLines = 8 plus onTextLayout to detect overflow via onTextLayout.hasVisualOverflow and reveal a “More” button. Fonts load with the Google font provider and can be preloaded via fontFamilyResolver.preload; variable fonts (Recursive) set axes with FontVariation. Message input uses BasicTextField with decorationBox, gradient border, and a cursorBrush gradient that changes color as typing approaches the limit.

AI-written summary · about

  1. 0:00Intro
  2. 0:43Text Typography block and Text parameters
  3. 2:00Material implementation
  4. 3:09onTextLayout() API
  5. 4:10Downloadable fonts
  6. 5:19Variable Fonts
  7. 6:07AnnotatedString
  8. 6:48Styling TextField
  9. 7:46Styling BasicTextField
  10. 9:08Outro
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.