Android sectioned listview with complex view
<p>I  want to use <a href="http://jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/" rel="nofollow">Jeff S. example</a> for sectioned listview with headers.</p>

<p>But I want to use more complex item view.</p>

<p>Can you suggest me which approach is best to do this. I found two ways</p>

<ol>
<li>Put information in   <code>Map&lt;String,String&gt; item = new HashMap&lt;String,String&gt;();</code>  using <code>item.put()</code> - <a href="http://stackoverflow.com/questions/5684002/license-problem-using-sectioned-listview-with-j-sharkeys-separatedlistadapter">example here</a></li>
</ol>

<p>2.Using <code>getView</code> on ArrayAdapter (without overriding other methods ) - <a href="http://stackoverflow.com/questions/3123193/listview-with-arrayadapter-and-viewholder-adding-icons-to-the-wrong-item">example here</a></p>

<p>Which way is better? </p>

<p>Thanks</p>
