<?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
android:id="@+id/mapview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0" />
<LinearLayout android:id="@+id/TableRow05" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="47dp">
<Button android:text="@string/Start" android:id="@+id/StartButton" android:layout_height="wrap_content" android:layout_width="100dp" android:textSize="20sp" ></Button>
<Button android:text="@string/Exit" android:id="@+id/QuitButton" android:layout_height="wrap_content" android:layout_width="100dp" android:textSize="20sp"></Button>
</LinearLayout>
<Button android:text="@string/Stop" android:id="@+id/StopButton" android:layout_height="wrap_content" android:layout_width="100dp" android:textSize="20sp" android:layout_marginLeft="97dp"></Button>
</LinearLayout>
这是我的布局的xml文件。我想在webview下添加其他东西(一些按钮,如示例中的那些按钮)。问题是,如果我打电话给loadUrl(string)
方法,我会得到一个全屏页面(我必须回到应用程序)。我能做些什么才能在网页的上半部分看到网页?Android WebView和其他东西
和MyWebViewClient里面? –
我忘了什么^ ^编辑:) – Graya
它的工作原理,非常感谢。 –