无法在android中将我的WebView显示为全高内部对话框
我想在android对话框中显示webview,但我看不到它的内容。我已经附上了它的截图。我还添加了下面的代码。请告诉我如何解决它,使它占据整个对话框无法在android中将我的WebView显示为全高内部对话框,android,xml,webview,fullscreen,Android,Xml,Webview,Fullscreen,我想在android对话框中显示webview,但我看不到它的内容。我已经附上了它的截图。我还添加了下面的代码。请告诉我如何解决它,使它占据整个对话框 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#e4e4e4"
android:orientation="vertical" >
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:text="@string/title_text_Contact_Info" />
<ImageView
android:id="@+id/imageView_close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|right"
android:clickable="true"
android:src="@drawable/aa" />
</FrameLayout>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:layout_marginLeft="3dp"
android:layout_marginRight="3dp"
android:background="@android:color/white" />
<WebView
android:id="@+id/webview1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</LinearLayout>
试着像这样将
WebView
包装到容器中
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent" >
<WebView
android:id="@+id/webview1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</FrameLayout>