我需要为 android 创建一个基本浏览器:一个 WebView 顶部的工具栏带有后退按钮,底部的工具栏带有更多按钮。
这样做的最佳方法是什么?
这是我到目前为止所拥有的:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >
    <Button
        android:id="@+id/browserBackButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Back" />
    <WebView
        android:id="@+id/webView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
    <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal" >
        <ImageButton
            android:id="@+id/backButton"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:src="@drawable/back" />
        <ImageButton
            android:id="@+id/forwardButton"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:src="@drawable/forward" />
        <ImageButton
            android:id="@+id/reloadButton"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:src="@drawable/reload" />
        <ImageButton
            android:id="@+id/browserButton"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:src="@drawable/safari" />
    </LinearLayout>
</LinearLayout>
按钮的底部 LinearLayout 根本不显示。只有顶部的后退按钮和 WebView。