How to get a view from a resource?
<p>I have a UI, I build it dynamically. I should want to put some component in a xml resource file. So I do :</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;TextView
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+android:id/titreItem"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"&gt;
&lt;/TextView&gt;
</code></pre>

<p>... in a file <code>res/layout/titreitem.xml</code> as I see anywhere. But I don't understand how get it to put inside my UI. So, inside <code>activity.onCreate</code>, I want to do something like :</p>

<pre><code>RelativeLayout myBigOne = new RelativeLayout(this);
TextView thingFromXML = [what here ? ];
myBigOne.addView(thingFromXML);
setContentView(myBigOne);
</code></pre>
