-
Anonymous
Как скрыть метку Hint на границе с указанными текстами
Сообщение
Anonymous »
Как я могу скрыть или отключить метку Hint после ввода текста? < /p>
Код: Выделить всё
OutlinedTextField(
value = value,
modifier = Modifier.fillMaxSize(),
shape = RoundedCornerShape(8.dp),
textStyle = TextStyle(fontSize = nFontSize),
colors = TextFieldDefaults.outlinedTextFieldColors(
textColor = Color.Black,
focusedBorderColor = colorResource(id = R.color.inbox_company_red),
cursorColor = Color.Black),
//visualTransformation = VisualTransformation.None,
label = {Text(text = if (value.isEmpty()) stringResource(id = R.string.name" else "")}
Подробнее здесь:
https://stackoverflow.com/questions/773 ... eld-border
1745404156
Anonymous
Как я могу скрыть или отключить метку Hint после ввода текста? < /p>
[code]OutlinedTextField(
value = value,
modifier = Modifier.fillMaxSize(),
shape = RoundedCornerShape(8.dp),
textStyle = TextStyle(fontSize = nFontSize),
colors = TextFieldDefaults.outlinedTextFieldColors(
textColor = Color.Black,
focusedBorderColor = colorResource(id = R.color.inbox_company_red),
cursorColor = Color.Black),
//visualTransformation = VisualTransformation.None,
label = {Text(text = if (value.isEmpty()) stringResource(id = R.string.name" else "")}
[/code]
Подробнее здесь: [url]https://stackoverflow.com/questions/77329265/how-to-hide-hint-label-on-the-outlinedtextfield-border[/url]