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 7577923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:18:29+00:00 2026-05-30T17:18:29+00:00

I have WebView, put it in to scrollview. I need to do it that

  • 0

I have WebView, put it in to scrollview. I need to do it that way cause at the bottom
I got ImageView and lower button.

The problem appear on Android 4.03. Where webview is much longer that it should be.

    WebView mWebView = null;
    mWebView = (WebView) findViewById(R.id.webview);
    mWebView.clearCache(true);
    mWebView.getSettings().setJavaScriptEnabled(true);
    mWebView.setBackgroundColor(0x00000000);
    mWebView.loadUrl("xxxxxxxxxxxxxxxxxxxxxxxxxxxx");
    mWebView.setVerticalScrollBarEnabled(true);
    mWebView.setHorizontalScrollBarEnabled(true);    
    mWebView.setWebViewClient(new WebViewClient() 
    {
        @Override
        public void onPageFinished(WebView view, String url)  
        {
            super.onPageFinished(view, url);
            acceptBtn.setVisibility(View.VISIBLE);
        }

        @Override
        public void onPageStarted (WebView view, String url, Bitmap favicon)
        {
            super.onPageStarted(view, url, favicon);
        }

        @Override
        public boolean shouldOverrideUrlLoading(WebView view, String url) 
        {
            return super.shouldOverrideUrlLoading(view, url);
        }

    });

and the xml:

<ScrollView 
android:layout_below="@+id/top"
android:layout_alignParentBottom="true"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout 
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <TextView
        android:id="@+id/helpText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/topTerms1"
        android:layout_alignParentTop="true"
        android:layout_alignRight="@+id/topTerms1"
        android:layout_marginBottom="10dp"
        android:layout_marginTop="10dp"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"
        android:gravity="center"
        android:text="@string/termsText"
        android:textColor="#777777"
        android:textSize="12dp" />

    <ImageView
        android:id="@+id/topTerms1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_below="@+id/helpText"
        android:layout_marginTop="5dp"
        android:src="@drawable/box_top" />      

    <WebView
        android:id="@+id/webview"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/topTerms1"
        android:layout_alignRight="@+id/topTerms1"
        android:layout_below="@+id/topTerms1"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"/>



    </RelativeLayout>
</ScrollView>
  • 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-05-30T17:18:31+00:00Added an answer on May 30, 2026 at 5:18 pm

    I found the solution. ImageView behind the webview was too long because it wasn’t ready to display webview.

    Right now I setup the main view, load the page and then add the webview to main view.
    The problem was not only on the ice scream sandwich, but on all platforms.

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

Sidebar

Related Questions

I can't resolve my problem with scrollView and webView, I know, that i can't
I have a ScrollView in an activity that contains a WebView and it looks
I have a WebView that I need to ask to load a website from
In my application I have a webView that contains the FB like button. JS
I was wondering is there any possible way that I can have a webview
I have a Cocoa app that uses a WebView to display an HTML interface.
I have a NSWindow that hosts a WebView that Ive hooked up to a
I have loaded an external URL in my WebView . Now what I need
I have Webview application that uses progress bar dialog. It works fine but the
I have had searched the web to find the way to put a name

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.