小编Ale*_*nin的帖子

如何更改 Android Jetpack Compose 中的 OutlineTextField 边框宽度?

我的代码:

OutlinedTextField(
     value = state.value,
     onValueChange = { state.value = it },
     modifier = Modifier.fillMaxWidth().padding(start = 30.dp, end = 30.dp),
     label = { Text(text = "Something", fontSize = 14.sp) },
     shape = RoundedCornerShape(12.dp),
)
Run Code Online (Sandbox Code Playgroud)

我想增加边框宽度,以便支持颜色focusedBorderColor, 。disabledBorderColor

android android-jetpack-compose android-jetpack-compose-text

6
推荐指数
1
解决办法
6563
查看次数