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?
I guess I can't post a picture because I don't have reputation?
Here is the xml for the layout:
<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" >
<TextView
android:id="@+id/text1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="hello"
android:textColor="#000000"
android:textSize="30sp" />
</RelativeLayout>
Here is the xml for the shape:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/blank_colordots_test">
<shape android:shape="rectangle" android:padding="10dp">
<corners
android:bottomRightRadius="35dp"
android:bottomLeftRadius="35dp"
android:topLeftRadius="35dp"
android:topRightRadius="35dp"/>
</shape>
</item>
</layer-list>