textAllCaps in Compose
Use KeyboardCapitalization.Characters
Published
•1 min readHello fellow Android nerd.
Are you looking for an alternative of textAllCaps of XML in Jetpack Compose, you are at the right place.
TextField(
value = "",
onValueChange = {},
keyboardOptions = KeyboardOptions(
keyboardType = KeyboardType.Text,
capitalization = KeyboardCapitalization.Characters
),
)
The doc of the Capitalization says this

Happy coding. Subscribe for more Jetpack Compose tricks.
29 views