title: Glide Transition (withCrossFade) when using SimpleTarget
body: <p>I have a requirement to scale the image based on the current screen orientation. If the screen is LANDSCAPE and the image is LANDSCAPE then scale it to FIT_XY. Otherwise, if the image is PORTRAIT then scale it to FIT_CENTER. And vice versa for PORTRAIT screen orientation.</p>
  
  <p>Here what I did so far:</p>
  
  <pre><code> Glide.with(getContext())
        .asBitmap()
        .load(displayedImageFile)
        .transition(BitmapTransitionOptions.withCrossFade(1000))
        .into(new SimpleTarget&lt;Bitmap&gt;()
        {
            @Override
            public void onResourceReady(Bitmap bitmap, Transition&lt;? super Bitmap&gt; transition)
            {
                int imgOrt = (bitmap.getWidth() &gt;= bitmap.getHeight()) ? Configuration.ORIENTATION_LANDSCAPE : Configuration.ORIENTATION_PORTRAIT;
                switch (screenOrientation)
                {
                    case Configuration.ORIENTATION_PORTRAIT:
                        if (imgOrt == Configuration.ORIENTATION_PORTRAIT)
                            imageview.setScaleType(ImageView.ScaleType.FIT_XY);
                        else
                            imageview.setScaleType(ImageView.ScaleType.FIT_CENTER);
                        break;
                    case Configuration.ORIENTATION_LANDSCAPE:
                        if (imgOrt == Configuration.ORIENTATION_LANDSCAPE)
                            imageview.setScaleType(ImageView.ScaleType.FIT_XY);
                        else
                            imageview.setScaleType(ImageView.ScaleType.FIT_CENTER);
                        break;
                }
                imageview.setImageBitmap(bitmap);
            }
        });
  </code></pre>
  
  <p>Any idea why <code>withCrossFade()</code> doesn't work? I am a newbie with Glide. In fact, just started with Glide yesterday. I apologize if it is something simple, but I can't workout what is wrong with my code.</p>
  
  <p>The only thing that I suspect is that the animation doesn't work when I am using <code>imageview.setImageBitmap(bitmap);</code>? Any idea how to overcome this problem?</p>