Fai l'ovveride del metodo getView appartenente al SimpleAdapter.
quindi fai questo:
codice:
SimpleAdapter mioAdapter = new SimpleAdapter (
this, // The context where the View associated with this SimpleAdapter is running
listaDati, // A List of Maps. Each entry in the List corresponds to one row in the list.
R.layout.item, // Resource identifier of a view layout
from, // A list of column names that will be added to the Map associated with each item.
views // The views that should display data
){
public View getView(int position, View convertView, ViewGroup parent) {
View row = super.getView(position, convertView, parent);
TextView t = (TextView)row.findViewById(R.id.miatextview);
String a = t.getText().toString();
if(a.equals("mario")){
t.setTextColor(Color.RED);
}else if(a.equals("luca")){
t.setTextColor(Color.YELLOW);
}else{
t.setTextColor(Color.GREEN);
}
return row;
}
};