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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:40:34+00:00 2026-05-28T03:40:34+00:00

I had put an question in StackOverflow yesterday but could not get the answer.

  • 0

I had put an question in StackOverflow yesterday but could not get the answer.
I am attaching the url for the same Question link looking for the answer.
I am using WebView to render the page and cannot scroll up and down with the html saved in asset folder.
Runs perfectly in emulator but in device I cannot scroll.

Looking forward to your reply.
thanks.

  • 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-28T03:40:35+00:00Added an answer on May 28, 2026 at 3:40 am

    use this is the code

    code for xml

    <ScrollView android:scrollbars="vertical" android:layout_height="wrap_content"     
        android:layout_width="fill_parent"     
        xmlns:android="http://schemas.android.com/apk/res/android"> 
      <LinearLayout 
          android:layout_height="fill_parent" android:layout_width="fill_parent" 
          xmlns:android="http://schemas.android.com/apk/res/android" 
          android:orientation="vertical"> 
         <WebView android:layout_height="wrap_content" 
            android:layout_width="fill_parent" android:id="@+id/help"/> 
         <ImageButton 
            android:layout_height="wrap_content" android:layout_width="wrap_content"  
            android:id="@+id/close" android:background="@drawable/ok_button"  
            android:layout_centerHorizontal="true" android:layout_gravity="center" 
            android:layout_alignParentBottom="true"/>
      </LinearLayout> 
    </ScrollView>
    

    code in jave

    try {
            InputStream is = getAssets().open("help.html");
    
            // We guarantee that the available method returns the total
            // size of the asset...  of course, this does mean that a single
            // asset can't be more than 2 gigs.
            int size = is.available();
    
            // Read the entire asset into a local byte buffer.
            byte[] buffer = new byte[size];
            is.read(buffer);
            is.close();
    
            // Convert the buffer into a Java string.
            String text = new String(buffer);
    
            final String mimeType = "text/html";
            final String encoding = "utf-8";
    
            // Finally stick the string into the text view.
            WebView wv = (WebView)findViewById(R.id.help);
            wv.loadData(text, mimeType, encoding);
        } catch (IOException e) {
            // Should never happen!
            throw new RuntimeException(e);
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not quite sure stackoverflow is a place for such a general question, but
Disclaimer: I understand the question is very basic, but I could not find the
Note: Let me appologize for the length of this question, i had to put
I had a question about indices on a table and I put it up
I had a boss, past-tense, who decided to put svn branches in the same
I had a previous question combining two questions on this subject...but I think I
I've had this same question when working with different templating systems in different languages
I'm trying to design a Windows Forms application. By default, .NET had put Tahome
Simply put, if you had to use a IoC/DI container, thats easy to deploy
I've never had a reason to put a label element inside of a legend

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.