如何製作android應用程序的全屏webview。我已將webview添加到佈局xml文件中,但直到佈局的邊緣才展開,沿着web視圖的所有邊都有一些類型的邊距。我還添加了一個圖像,讓你們知道它看起來是什麼樣子。如何製作全屏webview
什麼,我說的是空間的限制web視圖,而不是通知欄或標題欄
這裏的佈局代碼:
<RelativeLayout 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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".WebView" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="Shake/Tilt Your Phone To Get Accelerometer Motion Alerts" />
<WebView
android:id="@+id/webview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" />
</RelativeLayout>
您可以發佈烏爾佈局XM l代碼請嗎? –
@JohnJared剛剛添加了上面的代碼 – Arihant