Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7869241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:15:15+00:00 2026-06-03T01:15:15+00:00

Once an HTML is loaded in to a webview, I get a white stripe

  • 0

Once an HTML is loaded in to a webview, I get a white stripe on the right and bottom of the layout. For the right one I solved it using:

setScrollBarStyle(WebView.SCROLLBARS_INSIDE_OVERLAY);

However, I have tried many options to remove the bottom one with no success. Even after I read all the related posts. If more code is required please let me know.

xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" 
android:layout_height="fill_parent"
>

<WebView android:autoLink="web" 
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:id="@+id/webview1" 
     android:textColor="@android:color/black"
     ></WebView>

</LinearLayout>

activity

browse = (WebView) findViewById(R.id.webview1);
browse.getSettings().setJavaScriptEnabled(true);
browse.getSettings().setUseWideViewPort(true);
browse.getSettings().setLoadWithOverviewMode(true);
browse.setScrollBarStyle(WebView.SCROLLBARS_INSIDE_OVERLAY);
browse.setScrollbarFadingEnabled(false);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:15:17+00:00Added an answer on June 3, 2026 at 1:15 am

    In your WebView xml, add android:scrollbars=”none”

    <WebView android:autoLink="web" 
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:id="@+id/webview1" 
     android:textColor="@android:color/black"
     android:scrollbars="none"
     ></WebView>
    

    And remove the setScrollBarStyle(WebView.SCROLLBARS_INSIDE_OVERLAY);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a html page displayed using... cherrypy.quickstart(ShowHTML(htmlfile), config=configfile) Once the page is loaded
I'm loading some some html into a div through ajax using jquery. Once the
I have a webView which displays a local html file loaded with jQuery etc.
I'm using a webview on my activity. page is loaded from android_asset: webView.loadUrl(file:///android_asset/htm/main.htm); I
I have a dynamic list loaded into a HTML 5 web app built using
I am using HTML 5 FileReader to read more that one file asynchronously. I
I have an HTML file with a Form on it, where once the user
I have an html page which has a link called open. Once the link
I have a js and html form that submits through php. Once submitted, the
I have defined onbeforeprint and I modify my html code and now once I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.