I am having trouble applying a gradient background to a LinearLayout.
This should be relatively simple from what I have read but it just doesn\'t seem to work. For r
I don't know if this will help anybody, but my problem was I was trying to set the gradient to the "src" property of an ImageView like so:
Not 100% sure why that didn't work, but now I changed it and put the drawable in the "background" property of the ImageView's parent, which is a RelativeLayout in my case, like so: (this worked successfully)