title: How set an image in Android ImageView
body: <p>I need to show a image, when i press a button on my application.</p>
  
  <p>I'm trying with: </p>
  
  <pre><code>ImageView imageView = (ImageView) findViewById(R.id.imageView2);
  imageView.setImageDrawable(R.drawable.loading);
  </code></pre>
  
  <p>but it shows an error.</p>
  
  <p>Anyone can help me? Thanks.</p>