Changing color of TextView
<p>I want to change the color of a <code>TextView</code> inside my <code>Activity</code>s <code>ListView</code> by java code. <code>ListView</code> contains multiple rows which are fed by a <code>MatrixCursor</code> and an <code>ArrayAdapter</code>. The color of the <code>TextView</code> should be green or white which should be determined by an <code>if</code> clause. How can I accomplish this?</p>

<pre><code>    citem = NameManager.getciList();
    NameManager.WriteName(citem);
    MatrixCursor cursor;
    cursor = NameManager.getnameList();
    startManagingCursor(cursor);
    if (cursor.getString(9).equals("yes")){
        //TODO set color of R.id.name color here
    }
    String[] from = { "name", "info", "status", "path", "folder", BaseColumns._ID };
    int[] to = { R.id.name, R.id.info, R.id.status, R.id.path };
    final SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
            R.layout.row, cursor, from, to);
    setListAdapter(adapter);
</code></pre>
