我拉我的头发,并已解析网络多次了解以下内容。Android - WebView的问题
我用一个简单的活动中嵌入一个web视图:
<?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没有得到我想设置的任何apparence(没有圆角等)。
形状的代码,我想申请:
<?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>
我将不胜感激的人谁可以帮我解决这个问题。
在此先感谢
亚当。
任何人都可以帮助我吗? – 2011-03-11 07:46:07