私はこれについて髪を引っ張っていて、次のことを理解するためにウェブを数回解析しました。
WebView を埋め込む単純なアクティビティを使用しています。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/tables"
</LinearLayout>
ご覧のとおり、ドローアブル シェイプ ( android:background="@drawable/tables"
) を適用して、WebView の角が丸くなったり、境界線が描画されたりするようにしようとしています。
問題は、WebView が設定しようとしている外観を取得できないことです (角が丸くならないなど...)。
適用しようとしている形状のコード:
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/fond_tables"/>
<corners android:bottomRightRadius="10dp"
android:bottomLeftRadius="10dp"
android:topLeftRadius="10dp"
android:topRightRadius="10dp"/>
<stroke android:width="3dp"
android:color="@color/bordure_tables" />
</shape>
この問題の解決を手伝ってくれる人に感謝します。
前もって感謝します
アダム。