画面の中央にドローアブルがある別のアクティビティの上に、半透明の背景を持つアクティビティを表示しようとしています。ドローアブルは角が丸くなっており、レイアウトの背景として角が丸くなった長方形を設定しました。シェイプには、背景としてドローアブルがあります。問題は、角の丸いドローアブルの背後に黒い四角い境界線が表示されることです。その黒い境界線を取り除く方法はありますか?
評判が悪いから写真載せないのかな?
レイアウトの xml は次のとおりです。
<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>
形状の xml は次のとおりです。
<?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>