嘗試用這種方式
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg"
android:orientation="vertical" >
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginTop="5dp"
android:background="@android:color/transparent"
android:orientation="vertical" >
<WebView
android:id="@+id/webRootOperations"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:background="@android:color/transparent" />
</LinearLayout>
</ScrollView>
</LinearLayout>
請添加代碼,你嘗試過什麼。 –
對不起,但我在一個組織工作,如果分享我的代碼,它可能會導致泄露機密數據。 –
你必須至少在有問題的地方編寫演示代碼。 –