title: Adding gradient effect to TextView in a ListView generates NPE
body: <p>I've tried adding gradient effect to <code>TextView</code>. But it generates a <code>NPE</code>(I felt the <code>id</code> to was the culprit, but it wasn't so).</p>
  
  <p>My <code>Activity</code>:</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          this.requestWindowFeature(Window.FEATURE_NO_TITLE);
  
          TextView textView = (TextView)findViewById(R.id.label);        
          Shader textShader=new LinearGradient(0, 0, 0, 20,
                  new int[]{Color.GREEN,Color.BLUE},
                  new float[]{0, 1}, TileMode.CLAMP);
          textView.getPaint().setShader(textShader);
  
  
          // storing string resources into Array
          String[] menulist = getResources().getStringArray(R.array.menulist);      
  
          // Binding resources Array to ListAdapter
          this.setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.list_item, R.id.label, menulist));
  
  
  
      }
  </code></pre>
  
  <p>My <code>XML</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!--  Single List Item Design --&gt;
  &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/label"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:padding="10dip"
          android:textSize="16dip"
          android:textStyle="bold" &gt;
  &lt;/TextView&gt;
  </code></pre>
  
  <p>I feel I'm missing something obvious.</p>
  
  <p>If there's any other way to attain a list with a gradient color effect, feel free to suggest.</p>