Android setcolour listview particular row (only one particular row)
<p>I want to set color for particular row in listview.That row will know at runtime. I ahve done list view like this : </p>

<pre><code> ArrayList&lt;SalesRoutes&gt; routeList = getSalesRoute();

    ArrayList&lt;HashMap&lt;String, String&gt;&gt; routhPath = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
    for (int i = 0; i &lt; routeList.size(); i++) {
        if(Integer.parseInt(routeList.get(i).getOutlets()) &gt;0){
            HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
            map.put("routeCode",((SalesRoutes) routeList.get(i)).getRouteCode());
            map.put("routeName",((SalesRoutes) routeList.get(i)).getDescription());
            map.put("outlets", ((SalesRoutes) routeList.get(i)).getOutlets());
            routhPath.add(map);
        }
    }

    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});
    row = getLayoutInflater().inflate(R.layout.route_path_row, null, false);
    getListView().addHeaderView(row);
    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>Please tell me how can i do this...</p>

<p>Thanks in advance</p>
