You need two layers: An ImageView
, and a View
on top of that with your gradient as android:background
. Put these two View
s in a FrameLayout
:
<FrameLayout
... >
<ImageView
...
android:src="https://stackoverflow.com/questions/23991395/@drawable/trend_donald_sterling" />
<View
...
android:background="https://stackoverflow.com/questions/23991395/@drawable/trending_gradient_shape"/>
</FrameLayout>