https://kotlinlang.org logo
#compose
Title
# compose
z

zsperske

06/13/2022, 9:06 PM
If I have an
android:letterSpacing
value like the following, how do I use it in Compose?
Copy code
<!-- Letter Spacing -->
<dimen name="largeTitleLetterSpacing">0.00625</dimen>
j

Joseph Hawkes-Cates

06/13/2022, 11:13 PM
Most of the Text composables take an argument for
textStyle
or
style
which has a type of TextStyle. That type has a field for
letterSpacing
which you can use to set that. https://developer.android.com/reference/kotlin/androidx/compose/ui/text/TextStyle
20 Views