Calling inflate() multiple times in an Android view
<p>I have a View that inherits from LinearLayout that inflates itself.  After it has been created and inflated I wanted the ability to inflate a different layout.  However, calling inflate() a second time seems to have no effect.  Only if I close the activity and open it again is the state reflected in the UI.</p>

<p>Is it possible to call inflate multiple times to dynamically change the layout?</p>

<p>My inflate code is pretty simple:</p>

<pre><code>layoutInflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
layoutInflater.inflate(R.layout.my_layout, this, true);
</code></pre>
