I have two Images that I want to cross fade. Initially they both use imageview. I then use .getDrawable() to get the drawable of the images.
This is the code I used
Drawable backgrounds = new Drawable; backgrounds = BackgroundImage.getDrawable(); backgrounds = BackgroundImageBlurred.getDrawable(); TransitionDrawable crossfader = new TransitionDrawable(backgrounds); crossfader.startTransition(3000);
It only shows the image on the first array element, which it shows anyway since both images were set to visible in the XML.
The transition doesn't start
Any help would be appreciated :)