Just add two imageview
on top of each other using a relative layout
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:scaleType="centerCrop"
android:src="https://stackoverflow.com/questions/49275803/@drawable/settings"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ImageView
android:alpha="0.5"
android:background="@color/colorPrimary"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
solved How to add a mask over background image in activity? [closed]