Data binding generic variable
<p>How to define a generic type of a data binding variable?</p>
<p>The following code never compiles.</p>
<pre><code>&lt;data&gt;
    &lt;variable
        name=&quot;viewModel&quot;
        type=&quot;com.example.viewmodel.ViewModel&lt;Model&gt;&quot;/&gt;
&lt;/data&gt;
</code></pre>