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
Как установить приложение: founaltint с использованием Android DataBinding Livedata ⇐ Android
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Как получить ресурсы (R.String) в ViewModel в Android (MVVM и DataBinding)
Anonymous » » в форуме Android - 0 Ответы
- 1 Просмотры
-
Последнее сообщение Anonymous
-