【发布时间】:2022-10-21 15:39:18
【问题描述】:
Text(
text = "Resend OTP",
fontSize = 20.sp,
color = Textfieldcolor,
style = TextStyle(textDecoration = TextDecoration.Underline)
)
//This is my code this text should be selectable once and then be disabled .
【问题讨论】:
-
您可以使用按钮(可能是 TextButton)。它同时接受
onClicklambda 和enabled布尔值。
标签: android-studio kotlin text android-jetpack-compose android-jetpack