Android: eine Webansicht abgerundet Ecken geben?

Ich versuche, meinem WebView abgerundete Ecken zu geben.

Hier ist mein Code:

rounded_webview.xml:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="10dp">
 <solid android:color="#000"/>
    <corners
     android:bottomRightRadius="15dp"
     android:bottomLeftRadius="15dp"
  android:topLeftRadius="15dp"
  android:topRightRadius="15dp"/>
</shape>

Und hier ist mein WebView:

<WebView
        android:id="@+id/webView1"
        android:layout_width="293dp"
        android:layout_height="142dp"
        android:layout_gravity="center_horizontal"
        android:padding="5dip"
        android:background="@drawable/rounded_webview"/>

Aber es wird einfach nicht funktionieren! Ecken sind nicht gerundet ...

Antworten auf die Frage(6)

Ihre Antwort auf die Frage