How Text works in Jetpack Compose

Опубликовано: 30 Ноябрь 2024
на канале: Code with the Italians
1,105
30

We talked about Jetpack Compose Text APIs with Zach Klippenstein and Halil Ozercan from Google. Let's go! 🍕🤌💪

What's Code with The Italians?
Two Italian coders 🤓🧑‍💻 live-stream 📺 their sweary 🤬 mostly unsuccessful attempts at coding stuff and learning Jetpack Compose 🤖

In this episode, we discussed:

Zack Klippenstein on Twitter   / zachklipp  

Halil Ozercan on Twitter   / halilozercan  

TextMeasurer https://developer.android.com/referen...

StaticLayout https://developer.android.com/referen...

BoringLayout https://developer.android.com/referen...

Text shapinghttps://harfbuzz.github.io/what-is-ha...

AndroidParagraphHelper https://cs.android.com/androidx/platf...

Composition Phases https://developer.android.com/jetpack...

CoreText https://cs.android.com/androidx/platf...

ExtendedSpans https://github.com/saket/ExtendedSpans
ExtendedSpans blog post https://saket.me/compose-custom-text-...

Variable fonts playground https://v-fonts.com

TextLayoutHelper canReuse() https://cs.android.com/androidx/platf...

AutoSizeBasicText https://gist.github.com/halilozercan/...

Chapters

00:00:00 Waiting room
00:05:32 Welcome
00:47:30 Q: TextView.java on AOSP is almost 9000 lines of code. Text is much more complex than many people realise. How have you approached that complexity in Compose?

01:05:00 Q: Hi guys, is there any way to get the selected text when using SelectionContainer()? I want a custom text tool bar but have no idea how to get the selected text.

01:20:00 Q: Any plans to implement an HTML parser in Compose for formatting text and links, like we have in views (with things like Linkify)?

01:29:50 Q: How much extra complexity do variable fonts bring?

Links
The app source code is on Github https://cwti.link/bundel

Ivan is wearing our Android Studio Invalidate cache and Restart t-shirt https://cwti.link/t-shirt-invalidate-...
All our t-shirts and stickers are on our store https://cwti.link/spaccio

Support the channel for free if you have Amazon Prime: 📦 https://cwti.link/prime-sub
You can become a Ko-Fi ☕ supporter here https://cwti.link/tip and access our private Discord server. You can meet our guests and enjoy some backstage time after every episode.

If you are participating in an IntelliJ IDEA giveaway, check your YouTube Privacy https://cwti.link/yt-subs

Watch live at https://twitch.codewiththeitalians.it
Twitter https://twitter.codewiththeitalians.it
Web https://codewiththeitalians.it

#JetpackCompose #TextApi #TextIsHard #AndroidDev #Kotlin #DesignWithTheItalians

programming, kotlin, android, jetpack compose, Ivan Morgillo, Sebastiano Poggi, Zach Klippenstein Halil Ozercan composable android jetpack compose Check out how we are boosting our YT videos: https://vidiq.com/cwti