title: Add a transparent overlay to a selected Imageview
body: <p>How to add a <strong>transparent overlay</strong> to a selected <code>imageview</code>?</p>
  
  <p>I have a recyclerview. The user can perform deletion by long pressing the items.
  I want to highlight the items<br></p>
  
  <p>What i did is this-  </p>
  
  <p>1) Along with the items i created a View and made it invisible         <code>android:visibility="invisible"</code> .<br><br>
                   2) Made it visible if it selected in <code>onBindViewHolder()</code><br></p>
  
  <p><code>viewHolder.overlay.setVisibility(isSelected(i) ? View.VISIBLE : View.INVISIBLE);</code><br></p>
  
  <p>what i get is this</p>
  
  <p><a href="https://i.stack.imgur.com/woZPC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/woZPC.png" alt="enter image description here"></a></p>
  
  <p>what i actually want is this, a transparent overlay<br></p>
  
  <p><a href="https://i.stack.imgur.com/QvQDj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QvQDj.png" alt="enter image description here"></a></p>
  
  <p>How can i achieve this? </p>