滚动条不在边缘,Android Studio

问题描述

我创建了一个简单的网络视图

import android.webkit.WebView;

WebView myWebView;
setContentView(R.layout.activity_main);

myWebView  = (WebView) findViewById(R.id.activity_main_webview);
myWebView.setWebViewClient(new WebViewClient());
<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"
    tools:context=".MainActivity">

    <WebView
        android:id="@+id/activity_main_webview"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:isScrollContainer="false"
        android:scrollbarStyle="insideOverlay" />

</RelativeLayout>

我有一个问题,无论我在网络视图中打开哪个地址

scrollbar has strange margin

我需要将滚动条保持在屏幕边缘。请帮忙。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)