Patrick Yin
08/06/2020, 9:50 PMemitView(::TextView)
with a compose Text("")
, it works well. Is it an intentional behavior? Or there is something wrong?
@Composable
fun MarketLabel(text: String) {
// Android classic view
emitView(::TextView) {
it.text = text
}
}
@Composable
fun SomeThing() {
Box(
modifier = Modifier
.clickable(
onClick = {
doingSomething()
}
)
.padding(16.dp)
) {
MarketLabel("Test")
}
}
romainguy
08/06/2020, 9:54 PMPatrick Yin
08/06/2020, 10:11 PM