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

  • Home
  • SEARCH
  • 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 972763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:10:29+00:00 2026-05-16T03:10:29+00:00

I have been asked to build an app that lets the user scroll massive

  • 0

I have been asked to build an app that lets the user scroll massive amounts of text. The text will be several thousand of pages long. (Each page has and ID so we’ll have a navigator too.)

Question: What’s the best approach to have a lot of text scroll but load on demand more text as needed (up or down). I don’t want to load the entire text stream, as that would take a long time. It’ll need to display text in different colors and styles. eg headers in the text will be bold.

I considered the webview, but I would have to load the entire text into it wouldn’t I?

Think: “Browser for the War and Peace novels”

Ideas?

  • 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-16T03:10:30+00:00Added an answer on May 16, 2026 at 3:10 am

    Assuming the text has reasonable-sized chunks (e.g., headings and paragraphs), I’d use a ListView, with rows being TextViews. You can disable the dividers, and you should be able to set the row layouts to make it appear to be a continuous stream of text (leveraging the transition between rows to give you paragraph spacing). TextView supports Spannable contents, easily obtained from HTML via Html.fromHtml().

    Your ListAdapter would need to know how many rows you would need (sum of headings and paragraphs). Since you cannot hold onto all that text in RAM, in all likelihood, the ListAdapter would need to be somewhat virtual, able to get chunks of text off of flash as needed, with a modest amount cached for rapid short-range scrolling.

    This approach allows you to take advantage of ListView‘s row recycling, to minimize RAM usage, while still giving you reasonable formatting control.

    Some people have tried using WebView as rows in a ListView, if the TextView formatting is insufficient. However, I do not know how well this works, since WebView is scrollable, and putting scrollable items inside other scrollable items (ListView) is typically problematic.

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

Sidebar

Related Questions

I have been asked to build a web application that will be used to
I have been asked to develop some usercontrols in ASP.NET that will at a
I have been asked to lend a hand on a hobby project that a
I have been asked to standardize the screen saver and desktop background used by
I have been asked to audit any/all changes in a MySQL table. Does anyone
I have been asked to provide information on available techniques for assessing our current,
I have been asked to setup a course leaflet system for a college. For
I have been asked to find training resources to bring engineers up to speed
We have been asked to look into a fully open source solution for a
I have been asked up to come up with a state management strategy for

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.