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