http://stackoverflow.com/questions/37152824/android-databinding-using-logical-operator
My guess is that you should render&&
as&&
.
The officialdata binding guidehas examples of comparison operators where these XML entities are used,for example
android:visibility="@{age < 13 ? View.GONE : View.VISIBLE}"
也就是注意要使用“转义符号”。
比如说大于号,小于号等等,都需要转义符号。
原文链接:https://www.f2er.com/xml/294938.html