title: I want to add a transparent overlay to my background image in android
body: <p>I want to add a transparent overlay to my background image in Android, like below</p>
  
  <p><a href="https://i.stack.imgur.com/WBlSu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WBlSu.png" alt="enter image description here"></a> </p>
  
  <p>My code </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.bykar.bykar_provider.WaitingForActivationActivity"&gt;
  
      &lt;ImageView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:contentDescription=""
          android:scaleType="centerCrop"
          android:src="@drawable/map_bg"
          tools:ignore="ContentDescription" /&gt;
  
      &lt;View
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@color/black"
          /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>