Android Data Binding Binding Adapter with class reference
<p>I created this Binding Adapter</p>

<pre><code>@BindingAdapter("adapter")
public static void setAdapter(RecyclerView view, RecyclerView.Adapter&lt;RecyclerView.ViewHolder&gt; adapter)  {
    view.setAdapter(adapter);
}
</code></pre>

<p>and set in XML</p>

<pre><code>app:adapter="@{com.package.Adapter}"
</code></pre>

<p>it gives all kinds of errors with it. What I want is to do the same thing as you can do with LayoutManager in XML like this</p>

<pre><code>app:layoutManager="android.support.v7.widget.LinearLayoutManager"
</code></pre>

<p>Do you know how to solve this issue with passing a class? </p>

<p>P.S. I don't want to pass a variable reference in XML, because let's say I want to use only XML.</p>