Answer the question
In order to leave comments, you need to log in
Why don't words in data binding work?
I do this and the icon is not displayed, before that, instead of false, there was a normal condition, but it also did not work
android:background="@{false ? @drawable/battery_indicator_on : @drawable/battery_indicator_off}"
android:background="@{false ? @drawable/battery_indicator_on : @drawable/battery_indicator_off, [email protected]/battery_indicator_off}"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question