title: How to make a curved layout
body: <p><a href="https://i.stack.imgur.com/9rwXJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9rwXJ.png" alt="enter image description here"></a></p>
  
  <p>I am trying to make a layout half transparent what I am trying is to make the red part transparent and the part which is not colored with strong color .I am able to set this with placing a black layer in the back of one layer but I want to make it half transparent like the red part will show the image placed in the back side how can I do this ?
  this is the xml I tried</p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
  android:shape="rectangle"&gt;
  &lt;stroke
      android:width="0.5dp"
      android:color="@color/white" /&gt;
  &lt;corners
      android:bottomLeftRadius="150dp"
      android:bottomRightRadius="1000dp"
      android:topLeftRadius="0dp"
      android:topRightRadius="0dp" /&gt;
  &lt;padding
      android:bottom="0dp"
      android:left="0dp"
      android:right="0dp"
      android:top="0dp" /&gt;
  
  &lt;solid android:color="@color/red"
      /&gt;
  </code></pre>
  
  <p></p>