title: How should I create a rounded layout in android in which that the contents below it draws over the corners?
body: <p>I know how to make a rounded layout if the background is the same color as the layout, but I am trying to make it so the background is green, but the layout is grey so then the corners stick out and I can't seem to find a solution. Here is the code...</p>
  
  <p><strong>The drawable shape</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;solid android:color="#FFFFFF"/&gt;
  &lt;stroke android:width="3dip" android:color="#B1BCBE" /&gt;
  &lt;corners android:radius="10dip"/&gt;
  &lt;padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" /&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p><strong>The layout I use it in as a background</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout 
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent" 
  android:layout_height="match_parent"
  android:background="@drawable/popupwindow"&gt;
  
  
  &lt;TextView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Hello World!"
      android:paddingLeft="30dp"
      android:paddingTop="50dp"
      android:textSize="10dp"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ldIgF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ldIgF.png" alt="How the corners look like(this happens on the top also)"></a></p>
  
  <p>The corners look like this on the top as well... what should I do?</p>