Styling text in Compose

36 997
22.9
Опубликовано 24 октября 2022, 16:00
Text styling can give your app character. In this talk, we use Jetchat to learn how to use Material APIs to configure typography, including using downloadable fonts and variable fonts. We’ll then customize our chat bubble so it collapses depending on how long the message is. We’ll end by styling the message box: giving it a gradient border, a cursor that changes color as you type, and a fully custom decorated box.

Chapters:
00:00 - Intro
00:43 - Text Typography block and Text parameters
02:00 - Material implementation
03:09 - onTextLayout() API
04:10 - Downloadable fonts
05:19 - Variable Fonts
06:07 - AnnotatedString
06:48 - Styling TextField
07:46 - Styling BasicTextField
09:08 - Outro

Resources:
Text in Compose → goo.gle/compose-text
Compose samples → goo.gle/compose-jetchat

Speaker: Alejandra Stamato

Watch more:
Watch all the Android Dev Summit sessions → goo.gle/ADS-All
Watch all the Modern Android Development track sessions → goo.gle/ADS-MAD

Subscribe to Android Developers → goo.gle/AndroidDevs

#Featured #AndroidDevSummit #Compose
автотехномузыкадетское