```val density = LocalDensity.current Text( te...
# compose
k
Copy code
val density = LocalDensity.current
Text(
    text = buildAnnotatedString {
        append("xx")
        appendInlineContent("foo", "bar")
        append("x")
        appendInlineContent("foo", "bar")
    },
    modifier = Modifier.size(200.dp, 400.dp).border(2.dp, Color.Red),
    inlineContent = mapOf(
        "foo" to InlineTextContent(
            Placeholder(
                width = with(density) { 150.dp.toSp() },
                height = with(density) { 150.dp.toSp() },
                placeholderVerticalAlign = PlaceholderVerticalAlign.Top
            )
        ) {
            Box(
                modifier = Modifier
                    .fillMaxSize()
                    .background(Color.Black)
                    .border(2.dp, Color.White)
            )
        }
    )
I've found that InlineText has problems displaying on android. Is there any way to fix this?