V
V
veydlin2020-02-02 00:06:01
Android
veydlin, 2020-02-02 00:06:01

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}"


I thought something with resources, but
android:background="@{false ? @drawable/battery_indicator_on : @drawable/battery_indicator_off, [email protected]/battery_indicator_off}"

Quite itself displays an icon, what's the matter?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question