title: How to inflate a layout dynamically?
body: <p>I have the following layout defined in XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/streamRelativeLayout"&gt;
          &lt;ListView android:layout_height="fill_parent" android:layout_width="fill_parent" android:id="@+id/streamListView"&gt;&lt;/ListView&gt;
          &lt;ProgressBar android:layout_centerInParent="true" android:layout_height="wrap_content" android:id="@+id/streamProgressBar" android:layout_width="wrap_content"&gt;&lt;/ProgressBar&gt;
      &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>How can I use the LayoutInflater to grab the ListView and the ProgressBar and assign it in code?</p>