title: Android ListView Text Color white
body: <p>I have a custom <code>listview</code> by using an <code>adapter</code> which has alternate background color.
  The problem is that the text which are strings (over 100+ of strings) are set to the color of <code>Color.BLACK</code> but in the <code>listview</code> the first couple of strings are white and then the rest are black.</p>
  
  <pre><code>@Override  
      public View getView(int position, View convertView, ViewGroup parent) {  
      View view = super.getView(position, convertView, parent);  
      TextView tv = (TextView) super.getView(position, convertView, parent);
      int colorPos = position % color.length; 
      tv.setTextColor(Color.BLACK);
      view.setBackgroundColor(color[colorPos]);  
      return view;  
  }  
  </code></pre>
  
  <p>I can't detect the problem why the first are white then the others are black, is it something to with loading or something? because my text (the strings) they are over 100.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>This is the listView code:</p>
  
  <pre><code>MyAdapter adapter = new MyAdapter(this, 
      android.R.layout.simple_list_item_1,
      Strings.Advices);
  setListAdapter(adapter);
  </code></pre>
  
  <p>And the strings:</p>
  
  <pre><code>public class Strings {
      public static String Advices[] = {
         "advice",
         "advice",
         "adc",
         "add",
      };
  }  
  </code></pre>