title: How to give layout rounded corners Android
body: <p>I am trying to display an activity with a translucent background on top of another with a drawable in the center of the screen.  The drawable has rounded corners, and I've set a rectangle shape with rounded corners as the background of the layout.  The shape has the drawable as it's background.  The problem is I still get a black square border behind the round-cornered drawable.  Any way to get rid of that black border?</p>
  
  <p>I guess I can't post a picture because I don't have reputation?</p>
  
  <p>Here is the xml for the layout:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/custom_toast_layout_id"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"    
      android:orientation="horizontal"
      android:padding="5dp"   
      android:gravity="center"
      android:background="@drawable/myshape" &gt;
  
  
      &lt;TextView
          android:id="@+id/text1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="hello"
          android:textColor="#000000"
          android:textSize="30sp" /&gt;
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Here is the xml for the shape:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android" &gt;
      &lt;item android:drawable="@drawable/blank_colordots_test"&gt;
          &lt;shape android:shape="rectangle" android:padding="10dp"&gt;             
              &lt;corners
                  android:bottomRightRadius="35dp"
                  android:bottomLeftRadius="35dp"
                  android:topLeftRadius="35dp"
                  android:topRightRadius="35dp"/&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>