Coluring row based on condition in List view
<p>I haved filled the list view using setAdapter as given below </p>

<pre><code>cursor = manifest_helper.GetDeliveriesAgainstManifest(pkManifest);





    cursor.moveToFirst();

    for (int i = 0; i &lt; cursor.getCount(); i++) {

        map = new HashMap&lt;String, String&gt;();
        map.put("Deliv_Address",
                cursor.getString(cursor.getColumnIndex("Address")));
        map.put("Deliv_Time",
                cursor.getString(cursor.getColumnIndex("Time")));
        map.put("Deliv_Order",
                cursor.getString(cursor.getColumnIndex("DeliveryOrder")));
        map.put("Deliv_IsCustomerPickup",
                cursor.getString(cursor.getColumnIndex("IsCustomerPickup")));
        map.put("Deliv_FKDeliveryStatus",
                cursor.getString(cursor.getColumnIndex("FKDeliveryStatus")));
        map.put("Deliv_PKDelivery",
                cursor.getString(cursor.getColumnIndex("PKDelivery")));
        alist.add(map);
        cursor.moveToNext();


    }
    sd = new SimpleAdapter(this, alist, R.layout.deliveries_list_row,
            new String[] { "Deliv_Address", "Deliv_Time",
                    "Deliv_Order", "Deliv_IsCustomerPickup",
                    "Deliv_FKDeliveryStatus", "Deliv_PKDelivery" },
            new int[] { R.id.tv_Deliv_Address, R.id.tv_Deliv_Time,
                    R.id.tv_Deliv_Order,
                    R.id.tv_Deliv_IsCustomerPickup,
                    R.id.tv_Deliv_FKDeliveryStatus,
                    R.id.tv_Deliv_PKDelivery });
    //selectedAdapter = new SelectedAdapter(this, 0, alist);
    //selectedAdapter.setNotifyOnChange(true);

    ListDeliveries.setAdapter(sd);
</code></pre>

<p>The Problem is that i have a field "IsCustomerPickup" which have value either C or O.
Me want to differentiate each  rows by means of different color....will anyone help me...pls...  </p>
