android how to add two views into an activity
<p>I wanna add one xml file and one class which extends View to an single activity so that it work simultaneously.
like below,</p>

<ol>
<li>main.xml</li>
<li>private static class GraphicsView extends View</li>
</ol>

<p><strong>MyActivity</strong></p>

<pre><code>onCreate()
{
 RelativeLayout ll= new RelativeLayout(this);
ll.addView(new GraphicsView(this));
ll.---------&gt;how to add main.xml here?
 setContentView(ll);// so that i can write like this
}
</code></pre>

<p>please solve this.
Thank you</p>
