transition(GenericTransitionOptions.with(R.anim.slide_out_right))
Glide.with(MainActivity.this) .asBitmap() // .transition(BitmapTransitionOptions.withCrossFade(drawableCrossFadeFactory)) .transition(GenericTransitionOptions.with(R.anim.slide_out_right)) .load(imagesList.get(imgbg)) .into(new SimpleTarget<Bitmap>(DeviceUtils.getWindowscreenWidth1(MainActivity.this), DeviceUtils.getWindowscreenHeight1(MainActivity.this)) { @Override public void onResourceReady(Bitmap resource, Transition<? super Bitmap> transition) { Drawable drawable = new BitmapDrawable(resource); rlParent.setBackground(drawable); // rlParent.setVisibility(View.VISIBLE); } });