adding a shape using java code, in middle of a xml layout?
<p>As my requirement I need to add a shape in middle of an existed xml layout using Java code. In that xml I have a graph title at the top, under that I have some text details. Up to now I am able to draw that shape under the graph title, i.e where I want to place in xml, by using the following code.</p>

<pre><code>linear =(LinearLayout) findViewById(R.id.linear);

RectangleView aView = new RectangleView(this);

linear.addView(aView);
</code></pre>

<p>But the problem is, after adding the shape, remaining ui of that xml (other textual details) is gone. I want to place that thing also in my xml. If any one is aware of this, can you please suggest me how to fix this? Any response will be appreciated.</p>
