title: How to change the textcolor in listView
body: <p>Actually i want to change the text color of the listview that i had created for my app..actually when i change the bacground color of listview to white the text present in the listview is not appear as text color is also white..so is there any way to change the text color of the listview to black so that it is visible in the listView..i am sending my code u please check it..</p>
  
  <p><em><strong>XML code:</em></strong></p>
  
  <pre><code>  &lt;LinearLayout android:id="@+id/LinearLayout01"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  
  xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
  &lt;LinearLayout android:layout_height="match_parent" android:id="@+id/linearLayout1" android:layout_width="wrap_content" android:orientation="vertical"&gt;
      &lt;LinearLayout android:layout_height="wrap_content" android:id="@+id/linearLayout2" android:layout_width="match_parent"&gt;
      &lt;TextView android:text="All Contacts" 
          android:id="@+id/textView1" 
          android:layout_width="fill_parent" 
          android:layout_height="wrap_content" 
          android:background="#808080"
          android:textColor="#000000"&gt;
          &lt;/TextView&gt;
      &lt;/LinearLayout&gt;
   &lt;LinearLayout android:layout_height="wrap_content" android:id="@+id/linearLayout2" android:layout_width="match_parent"&gt; 
     &lt;ListView android:id="@+id/ListView01"
  
  android:layout_width="fill_parent"
  android:layout_height="fill_parent" /&gt;
  &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><em><strong>Java code:</em></strong></p>
  
  <pre><code>private ListView lv1;
      private String lv_arr[]={"Android","iPhone","BlackBerry","AndroidPeople","Android","iPhone"};
      @Override
      public void onCreate(Bundle icicle)
      {
          super.onCreate(icicle);
          setContentView(R.layout.contact_activity);
          lv1=(ListView)findViewById(R.id.ListView01);    
          lv1.setAdapter(new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_1 , lv_arr));
  
          lv1.setOnItemClickListener(new OnItemClickListener() 
          {
  
              public void onItemClick(AdapterView&lt;?&gt; parent, View view,int position, long id) 
              {
  
                        String selecteditem = lv_arr[position];
                        Intent myIntent = new Intent(view.getContext(), ContactInfo.class);
                        myIntent.putExtra("item", selecteditem);
                        startActivity(myIntent);
              }
          });
      }       
  </code></pre>