Add gradient to imageview

You need two layers: An ImageView, and a View on top of that with your gradient as android:background. Put these two Views 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>

Leave a Comment