title: How to set ListView background?
body: <p>I want to set white as a background color in my <code>ListView</code>.</p>
  
  <p>This is my code:</p>
  
  <pre><code>rect.setOnClickListener(new View.OnClickListener() {
  
      @Override
      public void onClick(View v) {
          ArrayAdapter adapter =
              new ArrayAdapter(Drejeskive.this,
                               android.R.layout.simple_spinner_item,
                               digits);
          ListView vl = new ListView(getApplicationContext());
          vl.setBackgroundColor(R.drawable.list_bg);
          vl.invalidate();
          layout.addView(vl);
          vl.setAdapter(adapter);
      }
  });
  </code></pre>
  
  <p>rect - it is my button </p>
  
  <p><code>list_bg</code> is below</p>
  
  <pre><code>&lt;item android:drawable="@color/white" /&gt;
  </code></pre>
  
  <p>Why doesn't it work?</p>