title: Android pass include layout ressource id as variable
body: <p>I'm using databinding with a layout that include another, and I would like to pass the ressource id of layout to include as a parameter, so the included layout can be changed programmatically.
  @layout/main.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layout xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;data&gt;
          &lt;variable
              name="layoutResId"
              type="int" /&gt;
          &lt;import type="android.view.View"/&gt;
      &lt;/data&gt;
      &lt;android.widget.LinearLayout
          android:layout_width="match_parent"
          android:orientation="vertical"
          android:layout_height="wrap_content"&gt;
          &lt;include layout="@{layoutResId}"/&gt;
      &lt;/android.widget.LinearLayout&gt;
  &lt;/layout&gt;
  </code></pre>
  
  <p>But i have this issue:
  layout attribute must start with "@layout/."</p>