title: Android: Should I use a ListView? (case: list elements with partially unknown structure)
body: <h3>Assumptions about the list (updated):</h3>
  
  <ul>
  <li><s>It will <i>not</i> contain more than <strong><em>10 list elements</em></strong> (the list elements are defined by the xml layout below).</s></li>
  <li>The height of every element is unknown, because the list element contain a <code>LinearLayout</code> that can have up to <strong><em>20 child views</em></strong> (see xml below).</li>
  </ul>
  
  <h3>XML Layout of the list element:</h3>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation:"horizontal"&gt;
  
      &lt;!--
          This LinearLayout is going to contain one or more 
          Views which will be added progammatically on runtime.
          The number of children views added to it depend on the 
          data to be displayed, and the only assumption that can 
          be made is that there's will be no more than 20 child 
          views for one particular instance of this LinearLayout.
      --&gt;
      &lt;LinearLayout
          android:orientation="vertical"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginRight="25dp"/&gt;
  
      &lt;ImageButton
          android:layout_width="25dip"
          android:layout_height="25dip"
          android:layout_gravity="center|top"
          android:layout_marginLeft="-25dp"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <h3>Questions:</h3>
  
  <ul>
  <li>Does it make any sense to use a <code>ListView</code> for a layout that has such freedom 
  in its structure (like the one above), and still being able to make use of the<br>
  convertView as passed in to the <code>ListView#getView(...)</code>?</li>
  <li>As an alternative, would it be wrong to put all the list elements in an outer<br>
  <code>LinearLayout</code> and put this within a <code>ScrollView</code>? By doing this, I wouldn't get
  caching abilities of the <code>ListView</code>, but maybe it wouldn't be so heavy given the 
  assumptions about the list? (see top). <i>(Any pointers on how to make this alternative look and feel like a <code>ListView</code>? I'm thinking of applying standard colors and selectors etc.)</i></li>
  </ul>