[英]Always display placeholder and RTL input in TextField with Jetpack Compose
[英]fixed placeholder in textfield jetpack compose
我试着用这个
Box(modifier = Modifier
.weight(1f)
.fillMaxWidth(),
contentAlignment = Alignment.CenterStart
) {
OutlinedTextField(
value = input,
onValueChange = onInputChange,
keyboardOptions = KeyboardOptions(
autoCorrect = false,
keyboardType = KeyboardType.Password
),
modifier = Modifier.fillMaxWidth()
)
Text(text = placeholder,modifier = Modifier.padding(start = 15.dp,bottom = 1.dp))
}
但效果不是很好
这是撰写。 你不能这样做:
leadingIcon={Text(text="To")}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.