Is it possible to show / hide views depending on values from same XML?
I don't want to write many conditions to java file.
What I mean is; if we can do this
<TextView android:text="@{user.lastName}"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="@{user.isAdult ? View.VISIBLE : View.GONE}"/>
We should be able to do this too right?
android:visibility="@{idOfMySwitch.isSelected() ? View.VISIBLE : View.GONE}"/>
If so how can I do it?