In einem neuen Android Compose-Projekt mit material3 versuche ich, focusLabelColor von OutlinedTextField wie folgt festzulegen, aber es hat nicht funktioniert, es sei denn, ich habe die Farbe für Text festgelegt.
Code: Select all
OutlinedTextField(
label = { Text("Label") },
colors =
OutlinedTextFieldDefaults.colors(
focusedLabelColor = Color.Blue,
focusedTextColor = Color.Red, // necessary for focusedLabelColor to have an effect
),
value = "",
onValueChange = {},
)
Ich habe es satt, Farben für TextField festzulegen und es hat auch nicht funktioniert.