title: How to change the color of list item using List Activity file
body: <p>I have seen some links which am not able to trace it out.I am trying to change the color of the list item using java code in my activity class. Iam not using any Code for list view in my XML file. So, please Can any one tell me how to change the color of the list item from default white to black and here is my sample  code . </p>
  
  <pre><code>ListView listView;
  // Create an array of Strings, that will be put to our ListActivity
  String[] names = new String[] { "India", "Malaysia" };
  // Use your own layout and point the adapter to the UI elements which
  // contains the label
  TextView tv = new TextView(getApplicationContext());
          tv.setText("Select Country");
  
          listView = getListView();
          listView.addHeaderView(tv);
         listView.setCacheColorHint(Color.rgb(36, 33, 32));
          listView.setBackgroundColor(Color.rgb(225, 243, 253));
  
          this.setListAdapter(new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_expandable_list_item_1,names));
  
  }
  </code></pre>
  
  <p>Thanks in advance</p>