title: How to make a transparent (alpha) gradient mask to make one layer fade into transparency in Android?
body: <p>I want to makes one layer fade into the beneath layers (or transparency depends on how you see it) according to a gradient. A so-called transparent (alpha) gradient mask. I am looking for a solution <a href="https://stackoverflow.com/questions/24614691/fade-out-scrolling-uitextview-over-image">similar to this</a> but on android instead of ios:</p>
  
  <p><a href="https://i.stack.imgur.com/x9YkL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x9YkL.png" alt="enter image description here"></a></p>
  
  <p>I have tried <a href="https://stackoverflow.com/questions/14345824/alpha-gradient-on-android?utm_medium=organic&amp;utm_source=google_rich_qa&amp;utm_campaign=google_rich_qa">this solution</a> but as mentioned in the comments, the overlay is not making the layer beneath transparent, it only makes it fade to a specified color.</p>
  
  <p>Any suggestions? </p>