hi all,
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 am able to draw that shape under the graph title i.e where i want to place in xml, by using the following code.
linear =(LinearLayout) findViewById(R.id.linear);
RectangleView aView = new RectangleView(this);
linear.addView(aView);
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 aware of this, can you please suggest me to fix this. any responce will be appreciated.
thanks in advance.

