Create Composables with Jetpack Compose

Sep 10 2024 · Kotlin 1.9, Android 14, Android Studio Jellyfish | 2023.3.1

Lesson 04: Use Text

Using Text Composable in App

Episode complete

Play next episode

Next

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Open the Starter project in the 04-use-text directory of the m3-cjp-materials repo in Android Studio Jellyfish or later.

Text(
  text = repo.name,
  fontSize = 16.sp,
  fontWeight = FontWeight.SemiBold
)
repo.description?.let {
  Text(
    text = it,
    fontSize = 14.sp
  )
}
Text(
  text = repo.htmlUrl,
  fontSize = 14.sp,
  fontWeight = FontWeight.Light,
  textDecoration = TextDecoration.Underline
)
See forum comments
Cinema mode Download course materials from Github
Previous: Exploring BasicText and Text in Compose Next: Conclusion