In my layout file I'm trying to use the following syntax to specify the text inside TextView:
android:text="@{user.isMe() && user.status.isEmpty() ? @string/EmptyStatusHint : user.status}"/> and I'm getting:
[Fatal Error] fragment_user_profile.xml:142:58: The entity name must immediately follow the '&' in the entity reference.
In Data Binding Guide there is no something special about.
So, regarding this situatuion, I have two questions:
- How can I use my logical statement in xml for data binding?
- What is the "entity" mentioned in the error report? I suppose I should know that ))
No comments:
Post a Comment