<How can I put the limit for numbers in textfield ...
# stackoverflow
u
How can I put the limit for numbers in textfield for android jetpack compose? I have a textfield in android jetpack compose, so I want to put limit for numbers, for example; user can write only numbers from 1 to 10, is it possible to do it in jetpack compose? @Preview(showBackground = true) @Composable fun OutlinedTextFieldComposable() { var text by remember { mutableStateOf("") } OutlinedTextField( value = text, onValueChange = { text = it }, label = { Text("Label") }, keyboardOptions = KeyboardOptions(keyboardType =...