title: Change background color of ListView specific row without CustomAdapter
body: <p>I'm trying to change the background color of a specific row in a ListView to match a specific color in my <code>List&lt;String&gt; hexcodeList</code>, which contains colors hex codes. However, I'm not using a CustomAdapter for this, instead I'm overriding <code>getView</code> from <code>ArrayAdapter</code>. I want the 1st row to have the 1st color of my list, the 2nd to have the 2nd color and so on. I'm very new to Java, my first thought was to use a for statement, so the code below is what I tried with no success, since this changes the background color of all rows using the last color of <code>hexcodeList</code>.</p>
  
  <pre><code>ListView CoresListView = (ListView) findViewById(R.id.ListViewId);  
  final ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, hexcodeList){
      @Override
      public View getView(int position, View convertView, ViewGroup parent){
          View view = super.getView(position,convertView,parent);
          for (position = 0; position &lt; hexcodeList.size(); position++) {
              view.setBackgroundColor(Color.parseColor(hexcodeList.get(position)));
          }
          return view;
      }
  };
  
  CoresListView.setAdapter(adapter);
  </code></pre>