title: drawable == drawable?
body: <p>This is my problem...:</p>
  
  <p>In my activity I have an <code>ImageView</code> and a <code>Button</code>. I want the Button to perform an action ONLY when the <code>ImageView</code> displays a certain drawable. And yes, this means that the <code>ImageView</code> is animating between various drawables that is coded such that it does not interrupt with what I want done.</p>
  
  <pre><code>ImageView imgview = (ImageView)findViewById(R.id.imgviewsid);
  Resources res = getResources();
  Drawable acertaindrawable = res.getDrawable(R.drawable.thecertaindrawable);
  Drawable variabledrawable = imgview.getDrawable();
  
      if (variabledrawable == acertaindrawable)
      {
              //does something
      }
  </code></pre>
  
  <p>It didn't work. And I've narrowed it down to the fault of the line "if (variabledrawable == acertaindrawable)". While Eclipse does not blatantly report errors that Android cannot recognize if two drawables are the same, I've tested the other areas of the code and all seem to work fine.</p>