val inputUnderLineColor = MutableLiveData(R.color.red2)< /code> < /p>
app:backgroundTint="@{viewModel.inputUnderLineColor}"< /code> < /p>
I want to set the EditText UnderLine color value depending on the state, but I get the following error
Cannot find a setter for that accepts parameter type 'androidx.lifecycle.MutableLiveData'< /code> < /p>
How do you solve this ??
Подробнее здесь: https://stackoverflow.com/questions/612 ... g-livedata
Мобильная версия