setting color in listviewitem
<p>I want to colorize an Item in a ListView with this code: </p>

<p><code>holder.txtPosition = (TextView)row.findViewById(R.id.txtPosition);</code> 
<code>holder.txtPosition.setTextColor(0xFF00CC00);</code>.</p>

<p>It is working great BUT: It colors every tenth item too. For example: I set the color for the first item, so every tenth item gets the color too. </p>

<p>If i scroll down and scroll up again, much more gets colored.</p>

<p>In this image, i only colored the first "User-voting" Text and then scrolled down very fast and scrolled back to top.</p>

<p><img src="http://i.stack.imgur.com/JQ7f7.png" alt="The green Text"></p>

<p>What kind of sorcery is this?</p>

<pre><code>import android.app.Activity;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;

public class List extends ArrayAdapter&lt;ListItem&gt;{

    Context context; 
    int layoutResourceId;    
    ListItem data[] = null;

    public List(Context context, int layoutResourceId, ListItem[] data) {
        super(context, layoutResourceId, data);
        this.layoutResourceId = layoutResourceId;
        this.context = context;
        this.data = data; 
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        View row = convertView;
        WeatherHolder holder = null;
        ListItem entry = data[position];

        if(row == null)
        {
            LayoutInflater inflater = ((Activity)context).getLayoutInflater();
            row = inflater.inflate(layoutResourceId, parent, false);

            holder = new WeatherHolder();
            holder.txtVideos = (TextView)row.findViewById(R.id.txtVideos);
            holder.txtPosition = (TextView)row.findViewById(R.id.txtPosition);
            holder.txtTitle = (TextView)row.findViewById(R.id.txtTitle);
            holder.txtcomments = (TextView)row.findViewById(R.id.txtcomment);

            row.setTag(holder);

            if (entry.fav){
                //row.setBackgroundColor(0xFFfcf6bb);
            }
        }
        else
        {
            holder = (WeatherHolder)row.getTag();
        }
        holder.txtTitle.setText(entry.teilnehmer);
        holder.txtPosition.setText(entry.position);

        int num = Integer.parseInt(entry.videos);
        if (num == 0 || num &gt; 1){
            holder.txtVideos.setText(entry.videos + " Videos");
        } else {
            holder.txtVideos.setText(entry.videos + " Video");
        }

        if (holder.txtPosition.getText().equals("Ausgeschieden")){
            holder.txtPosition.setTextColor(0xFFFF0000);
        } else if(holder.txtPosition.getText().equals("User-Voting")){
            holder.txtPosition.setTextColor(0xFF00CC00);
        }

        num = Integer.parseInt(entry.comment);
        if (num == 0 || num &gt; 1){
            holder.txtcomments.setText(entry.comment + " Kommentare");
        } else {
            holder.txtcomments.setText(entry.comment + " Kommentar");
        }
        return row;
    }

    static class WeatherHolder
    {
        TextView txtTitle;
        TextView txtVideos;
        TextView txtPosition;
        TextView txtcomments;
    }
}
</code></pre>
