title: Change ListView item background to gradient
body: <p>I am able to setup a listview using custom adapter which shows correct output..Now i want to change the background of each listview items to a gradient.. how it could be done?</p>
  
  <p><strong>My files...</strong></p>
  
  <p>activity_main.xml....Main xml file</p>
  
  <p>MainActivity.java....Main activity</p>
  
  <p>Item.java.... item selector method</p>
  
  <p>ItemAdaptor.... custom adapter</p>
  
  <p>list_item.xml..... item (textView) styling</p>
  
  <p>I have created my gradient code which is like..</p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle"&gt;
   &lt;gradient 
   android:startColor="#FFFAFAFA" 
   android:centerColor="#FFFFFFFF" 
    android:endColor="#FFFAFAFA" 
    android:angle="90"/&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>also how could I change the separator color,and the background color of the whole listview..</p>