Android muticolumn listview with headinng
<p>How can we give the heading for muticolumn list view (Like table heading)</p>

<p>For example I need like this</p>

<pre><code>RouteCode   RouteName   Outelet
 0001        aaaaa        10
 0002        bbbbb        20
</code></pre>

<p>But currently display like this</p>

<pre><code>      0001        aaaaa        10
      0002        bbbbb        20
</code></pre>

<p>I have done using <code>SimpleAdapter</code></p>

<pre><code>  ListView list = getListView();
    sd = new SimpleAdapter(this, routhPath, R.layout.route_path,new String[] {"routeCode","routeName","outlets" },new int[] { R.id.routeCode,R.id.routeName,R.id.outlets});
    list.setAdapter(sd);
    list.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
    list.setSelected(true);
    list.setSelection(0);
    list.setTextFilterEnabled(true);
    list.setItemsCanFocus(true);
    list.setItemChecked(positions, true);
    list.setSelectionAfterHeaderView();
</code></pre>

<p>My list view also : </p>

<pre><code> &lt;ListView android:id="@android:id/list" 
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" 
              android:clickable="true"
              android:dividerHeight="2dp" 
              android:divider="@drawable/divider"
              android:textFilterEnabled="true"
              android:scrollbars="vertical"
              android:layout_gravity="fill_vertical"
              android:drawSelectorOnTop="false"
              android:clipChildren="true" 
              android:fitsSystemWindows="true"
              android:smoothScrollbar="true"
              android:cacheColorHint="#fff"
              android:fastScrollEnabled="false"
                /&gt;
</code></pre>

<p><strong>Another question</strong></p>

<p>How to differentiate particular row in the list (differentiate mean different color)? I need this for default route is set in db. then that row should be show with different color.
How can i implement this.?</p>

<p><strong>for example when it load i want to show 2nd or 3rd or.. row in red color ..</strong>
Please help me</p>

<p>Thanks in advance</p>
