title: How do you add an ImageView to a ListFragment?
body: <p>Normally using a ListView adding images and text to the ListView items is straight forward. You create and adapter and setListAdapter(adapter) with your custom adapter.</p>
  
  <p>I would like to create a Fragment app that contains the same list with ImageView.  I have searched for an example but have not been able to find any that have an image.  Can someone please point me to an example so I can see how it is done?</p>
  
  <p>Is it done in the layout-land XML? How would you declare that using the following xml for example.</p>
  
  <pre><code>    &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="horizontal"
      android:layout_width="match_parent" android:layout_height="match_parent"&gt;
  
      &lt;fragment class="com.demo.android.FragmentLayout$ArticleFragment"
              android:id="@+id/article" android:layout_weight="1"
              android:layout_width="0px" android:layout_height="match_parent" /&gt;
  
      &lt;FrameLayout android:id="@+id/details" android:layout_weight="1"
              android:layout_width="0px" android:layout_height="match_parent"
              android:background="?android:attr/detailsElementBackground" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>