滚动时如何删除Android webview底部的纯白色水平条?

时间:2015-07-21 21:47:51

标签: android css webview

我的Android应用程序只包含一个webview,并且只在Lollipop(5.0)上,我注意到这个问题,在webview中滚动会导致在页面底部出现这个纯白色水平条。当我停止滚动时,水平条淡出。是否有可以设置的webview设置以防止此栏出现?

滚动前: before scroll

滚动时: while scroll

XML

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"
    tools:context=".MainActivity">

    <RelativeLayout
        android:id="@+id/nonVideoLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <ImageView
            android:id="@+id/activityMainImageview"
            android:layout_centerHorizontal="true"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:background="@drawable/portrait" />

        <com.whil.whil.VideoEnabledWebView
            android:id="@+id/activityMainWebview"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent" />

    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/videoLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >
    </RelativeLayout>

</RelativeLayout>

编辑:感谢大家的评论,但关于隐藏滚动条的链接问题不适用于此处,因为显示的栏不是滚动条,因此其他问题中提到的解决方案都不适用于此。< / p>

0 个答案:

没有答案
相关问题