I use data binging in a view holder of a recycler view. For showing an inactive row, I set foreground to a color and this is working perfect on my Nexus6 and many other devices.
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:foreground="@{subscribed.isAutoRenew() ? @color/transparent : @color/bg_inactive}">
other stuff ...
</RelativeLayout>
The problem is this code is not working on Samsung SM-N900 with android 5.0. I can solve it by using java code instead of data binding. Any suggestion how to solve it by data binding?