Applying a background image to listview with textview
<p>I'm trying to create a listview with a static background image (i.e. not contained within the individual list cells, but fills the display and does not move when list is scrolled).  I've found a couple references here and am trying to implement, but no joy.  The first is;</p>

<p><a href="http://stackoverflow.com/questions/3989268/set-a-background-for-a-listview">Set a background for a listview</a></p>

<p>In particular, I'm trying this;</p>

<pre><code>    //set background to Drawable
listView.setBackgroundDrawable(myDrawable);
</code></pre>

<p>To create the "myDrawable" variable, I'm using a suggestion from;</p>

<p><a href="http://stackoverflow.com/questions/3218520/how-can-i-access-an-android-drawable-by-a-variable">How can I access an android drawable by a variable</a></p>

<p>Again, the particular code I'm trying is;</p>

<pre><code>String icon="logo" + cnt;
 int resID = getResources().getIdentifier(icon, "drawable",  getPackageName()); 
 logo.setImageResource(resID);
</code></pre>

<p>Here is the code I created;</p>

<pre><code>ListView lv = getListView();
  lv.setTextFilterEnabled(true);

  String bg="football_turf_subtle";
  int resID = getResources().getIdentifier(bg, "drawable", getPackageName());
  myDrawable.setImageResource(resID);

  lv.setBackgroundDrawable(myDrawable);
</code></pre>

<p>The problem I'm running into in my code is "myDrawable cannot be resolved"?  If it's not obvious, I'm new to Android/Java.</p>

<p>Thanks in advance for any help!</p>
