Questions tagged [android-jetpack-compose]

Jetpack Compose is Android’s modern toolkit for building native declarative UI made by Google. If you're targeting desktop with Compose for Desktop, use both this and [compose-desktop] tags.

10142 questions
55
votes
13 answers

Android Compose: How to use HTML tags in a Text view

I have as string from an outside source that contains HTML tags in this format: "Hello, I am bold text" Before Compose I would have CDATA at the start of my HTML String, used Html.fromHtml() to convert to a Spanned and passed it to the…
William
  • 1,255
  • 2
  • 10
  • 9
55
votes
1 answer

Equivalent of constraint layout 0dp

I've been trying to achieve the following layout with compose: For this, I've created the composable: @Preview(showBackground = true) @Composable fun element() { ConstraintLayout( modifier = Modifier.fillMaxWidth() ) { val…
Fred
  • 16,367
  • 6
  • 50
  • 65
54
votes
4 answers

How to use string resources in Android Jetpack Compose?

Let's I have the following strings.xml resource file: My Playground Hello %!