Set text color using data binding on Android : <p>I'm trying to set <code>TextView</code> text color using data binding library</p>

<pre><code>android:textColor="@{holder.getTitleColor(context, item)}"
</code></pre>

<p>where the method in <code>Holder</code> class is defined like below</p>

<pre><code>public int getTitleColor(Context context, Item item) {
   ...
}
</code></pre>

<p>No matter if I return color int (<code>@ColorInt</code>) or color resource (<code>@ColorRes</code>) it paints the text solid white. What am I doing wrong?</p>
