Kanika
Kanika

Reputation: 10708

Fading background image from normal image to faded image

I am doing a project in which i want to fade my background image from normal to fade the same image so the text over it can be displayed properly...but i am not getting how to do it??

Upvotes: 2

Views: 387

Answers (1)

happydude
happydude

Reputation: 3889

Try putting both images in a TransitionDrawable. This is a type of drawable that is used to cross-fade between its layers when startTransition(int) is called. See the TransitionDrawable documentation here.

Upvotes: 2

Related Questions