zhagnfei
08/19/2021, 6:51 AMTextField(
value = feedContent.observeAsState().value ?: "",
onValueChange = {
if (it.length <= 200) {
feedContent.value = it
}
},
maxLines = 4,
colors = textFieldColors(
textColor = colorResource(id = R.color.color_22BE8C),
cursorColor = colorResource(id = R.color.colorPrimary),
backgroundColor = colorResource(id = R.color.color_f1f3f7),
focusedIndicatorColor = Color.Transparent,
unfocusedIndicatorColor = Color.Transparent,
disabledIndicatorColor = Color.Transparent
),
shape = RoundedCornerShape(6.dp),
placeholder = {
Text(text = stringResource(id = R.string.feedback_input_desc),
modifier = Modifier.wrapContentSize(),
color = colorResource(id = R.color.color_BBBBC3), fontSize = 14.sp)
},
modifier = Modifier
.fillMaxWidth()
.wrapContentHeight(align = <http://Alignment.Top|Alignment.Top>)
.padding(top = 20.dp)
.background(Color(0xF1F3F7), RoundedCornerShape(6.dp)),
)
why show the textcolor is colorPrimary????annsofi
08/19/2021, 6:52 AMcolorPrimary
, the text color is R.color.color_22BE8C
zhagnfei
08/19/2021, 6:53 AMannsofi
08/19/2021, 6:58 AMzhagnfei
08/19/2021, 7:00 AMannsofi
08/19/2021, 7:01 AMzhagnfei
08/19/2021, 7:02 AMColton Idle
08/19/2021, 7:15 AM