I have situation where want to pass string in to custom view attribute, but it not working if not passing only a reference.
Working:
......
app:title="sa"
app:title="@string/winning_title"
......
Not working:
<data>
<variable
name="title"
type="String" />
</data>
......
app:title="@{title}"
And stylable:
<declare-styleable name="CollapsibleRecyclerView">
<attr name="title" format="string"/>
<attr name="separatorsColor" format="color"/>
<attr name="animationDuration" format="integer"/>
</declare-styleable>
Any ideas how to fix it?