チュートリアルで見たものは何でも、レイアウトをINTOにロードしていないWebView
可能性がありalong with
、WebView
.
つまり、HTML の div に似たレイアウトを実際に使用できます。レイアウトを取得し、そこに Webview を追加してから、lgw150 で示されているように、webview タグの外側にボタンやその他のコントロールを追加します。
これは、ボタンなどが webview 内にあるという印象を与えるかもしれませんが、実際にはそうではありません!
あなたはこのようなものを持つことができます:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:orientation="vertical">
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<Button android:id="@+id/button1"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_weight="1"/>
<Button android:id="@+id/button2"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_weight="1" />
</LinearLayout>
<WebView
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
詳細については、これとこれもチェックしてください。私の回答の左側にあるチェックマークをクリックしてください。