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}"
http://stackoverflow.com/questions/37152824/android-databinding-using-logical-operator
My guess is that you should render The officialdata binding guidehas examples of comparison operators where these XML entities are used,for example android:visibility="@{age < 13 ? View.GONE : View.VISIBLE}" 也就是注意要使用“转义符号”。 比如说大于号,小于号等等,都需要转义符号。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |