how to inflate again into inflated layout?
<p>example</p>

<p><strong>layoutC</strong> (headerView)    [add->]   <strong>layoutB</strong>(listView)    [add->]    <strong>layoutA</strong> (Activity)</p>

<p>so <strong>layoutA</strong> will consist <strong>layoutB</strong> and <strong>layoutC</strong>, but <strong>layoutC</strong> will be headerview for <strong>layoutB</strong>. the reason i want create into this way because layoutB might share for 6 pages but layoutC would have different kind.</p>

<p><strong>i create a class call layoutB</strong></p>

<pre><code>public class layoutB extends RelativeLayout implements CustomListener{

Context mContext;

public layoutB(Context context) {
     super(context);
}


public Archived(Context context, AttributeSet attrs) {
    super(context, attrs);
    LayoutInflater.from(context).inflate(R.layout.layout_b, this);
}

public Archived(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);
    LayoutInflater.from(context).inflate(R.layout.layout_b, this);
}


public void inflateLayoutC(int top_layout) {
    ListView listView1= (ListView) findViewById(R.id.listView1);
    LayoutInflater inflater = LayoutInflater.from(getContext());
    View Top = inflater.inflate(R.layout.layout_c, null);
    listView1.addHeaderView(Top);
}
</code></pre>

<p>inflateLayoutC, how should i do that adding layoutC into layout B</p>
