property is responsible for drawing the thin horizontal line when in unfocused mode? It disappears when the textfield is focused. Right image is focused, left is unfocused
c
Chris Sinco [G]
01/04/2022, 4:33 AM
I believe that has to do more with the IME than Compose
t
Tobias Suchalla
01/04/2022, 6:56 AM
That is the
indicatorColor
. You can alter this color via
Copy code
val colors = TextFieldDefaults.textFieldColors(
focusedIndicatorColor = <http://Color.xyz|Color.xyz>,
unfocusedIndicatorColor = <http://Color.xyz|Color.xyz>,
disabledIndicatorColor = <http://Color.xyz|Color.xyz>,
errorIndicatorColor = <http://Color.xyz|Color.xyz>
)
TextField(
value = value,
onValueChange = { value = it },
colors = colors
)