Android Question applying gradient to an image

moster67

Expert
Licensed User
Longtime User
I have previously used gradient applying it directly to the background of an activity.

Now my designer has given me a background-image which I will use as an activity background (or perhaps in an imageview) and he told me to apply a gradient to this background-image. Is it possible to do this? Do I need to use the canvas-object?

Any help/suggestions would be highly appreciated?
 
Will probably be simpler to apply the gradient to the image itself.

I have asked the designer the same question since I cannot understand the advantage of applying it at runtime.

However, if it is possible, I would like to know how to do it. Thanks!
 
Upvote 0
Back
Top