URL在Chrome中加载完美,但在FinestWebView中则不然

时间:2018-04-27 05:35:37

标签: android google-chrome webview

我正在使用FinestWebView在我的应用中加载网址。 https://github.com/TheFinestArtist/FinestWebView-Android

我的网址在Chrome浏览器中完美展示,但在FinestWebView中,网址显示不正常。它被中途切断了。网页底部未显示。

在Chrome中:

enter image description here

在FinestWebView中:

enter image description here

请告诉我启用/禁用哪些标志才能全屏显示。

以下是加载网址的代码:

new FinestWebView.Builder(context)
            .showUrl(false)
            .showIconMenu(false)
            .titleDefault(getString(R.string.payment))
            .updateTitleFromHtml(false)
            .iconDefaultColorRes(R.color.white_color)
            .show(urlPlan);

styles.xml:

    <style name="AppTheme.NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="colorPrimary">@color/titlebackgroundcolor</item>
    <item name="colorPrimaryDark">@color/statusBarColor</item>
    <item name="colorAccent">@color/dark_green</item>
    <item name="android:textColorPrimary">@color/white</item>

清单:

<activity android:name="com.thefinestartist.finestwebview.FinestWebViewActivity"
        android:configChanges="keyboardHidden|orientation|screenSize"
        android:screenOrientation="sensor"
        android:theme="@style/AppTheme.NoActionBar"  />

0 个答案:

没有答案
相关问题