Deepak Gahlot
02/25/2021, 4:48 AMTextField(
modifier = Modifier
.fillMaxWidth()
.padding(0.dp, 0.dp, 0.dp, 0.dp)
.constrainAs(textField) {
top.linkTo(<http://parent.top|parent.top>)
},
enabled = if (questions.editable != null) questions.editable else false,
backgroundColor = if ((questions.editable != null) && (questions.editable)) colorResource(
id = R.color.white
) else colorResource(id = R.color.gray5),
value = text!!,
textStyle = TextStyle(Color(R.color.black)),
singleLine = true,
onValueChange = {
text = it
textCount = text!!.length
MappingUtils.getAnswerForItemId(
questions.itemId!!,
text!!,
aList = qResponse.answers,
null,
false
)
},
inactiveColor = colorResource(id = R.color.gray9),
activeColor = colorResource(id = R.color.blue1)
)
Shabinder Singh
02/25/2021, 4:58 AMDeepak Gahlot
02/25/2021, 4:58 AMShabinder Singh
02/25/2021, 4:59 AMDeepak Gahlot
02/25/2021, 6:41 AMonTextInputStarted = { keyboardController.value = it },
Se7eN
02/25/2021, 12:51 PM