画像でわかるように、2つのボタンを備えたシンプルなレイアウトがあります.Googleボタンをクリックすると、ウェブビューでGoogleウェブサイトが開きます.フルスクリーンでGoogleウェブサイトを開いているのではなく、これらのボタンが2つ表示されていますメイン レイアウトからスクロールバーを削除すると、webview に Google の Web サイトがフルスクリーンで表示されます。メイン レイアウトでスクロールビューを使用したいので、この問題を解決するにはどうすればよいですか。ここに私の main.xml があります
xml
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<Button
android:id="@+id/btn_click_login"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_weight="2"
android:text="Google"/>
<Button
android:id="@+id/btn_gmail"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_weight="2"
android:text="Gmail"/>
<WebView
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
</WebView>
</LinearLayout>
</ScrollView>