Inflated layout behaves differently than static XML layout
<p>I have a layout that I am using as a parent layout template. Depending on what Activity I launch, I would like to populate the contents of a LinearLayout in the parent template with an inflated view. Now, if I place the parent and child layouts into the same XML file, things look good. But if I use setContentView() on the parent layout, and then inflate the child view and add it to the same place in the parent layout, things don't work. Both the LinearLayout that I am putting the child view into, and the LinearLayout that is the root of the child view have <code>android:layout_height="fill_parent"</code>, but the child view is unable to fill the LinearLayout that it is added to.</p>

<p>Is there something obvious I'm not doing correctly? Remember, these layouts should look identical, just one method is static, and the other is dynamic. I assume that this has something to do with the parent layout dimensions being calculated and not updated after the child view is inflated.</p>

<p>Thanks!</p>
