How to inflate one view with an layout
<p>I have a layout defined in XML. It contains also: </p>

<pre><code>&lt;RelativeLayout
    android:id="@+id/item"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
/&gt;
</code></pre>

<p>I would like to inflate this RelativeView with other XML layout file. I may use different layouts depending on a situation. How should I do it? I was trying different variations of </p>

<pre><code>RelativeLayout item = (RelativeLayout) findViewById(R.id.item);
item.inflate(...)
</code></pre>

<p>But none of them worked fine. Heeelp ;)</p>
