title: android imageview.setBackgroundResource() doesn't work
body: <p>I have an <strong>imageview that should be changed on click</strong></p>
  
  <pre><code>public class Settings extends Activity implements OnClickListener
  {
       private ImageView im1;
       @Override
       public void onCreate(Bundle savedInstanceState)
       {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.settings);
           im1 = (ImageView) findViewById( R.id.imageView1 );
           im1.setOnClickListener(this);
       }
       @Override
       public void onClick(View v)
       {
           // TODO Auto-generated method stub
           if (v == im1 )
           {
               Log.d("test", "hey!");
               v.setBackgroundResource(R.drawable.img1);
           }
       }
  }
  </code></pre>
  
  <p><strong>when clicked the method runs and prints out "hey!" but the image won't change?</strong></p>
  
  <p><strong>EDIT</strong>: forgot to mention that <code>imageview</code> contains another image provided by xml layout file</p>