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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:20:28+00:00 2026-06-18T05:20:28+00:00

I should split a long text for being shown within as much column as

  • 0

I should split a long text for being shown within as much column as needed. For instance i’ve got a 80 lines text and i want to show it within two textview longer then larger one next to the other one, each one with a maxlines of 60. Any suggestions for doing that?

  • 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-18T05:20:29+00:00Added an answer on June 18, 2026 at 5:20 am

    I know this is an old question, but even though …
    maybe have a look here :
    http://www.accella.net/multi-column-text-displays-in-android/

    you need to display your text into a first textview, then get what does not appear in that first textview, then display it in a second textview and so on.
    To get the “invisible” text from your textview, here is some code:

    private String getInvisibleText(final TextView textView) {
        String invisible = null;
        int height    = textView.getHeight();
        int scrollY   = textView.getScrollY();
        Layout staticLayout = textView.getLayout();
    
        int lastVisibleLineNumber  = staticLayout.getLineForVertical(scrollY+height);
        int start = staticLayout.getLineEnd(lastVisibleLineNumber);
        int end = staticLayout.getLineEnd(textView.getLineCount()-1);
    
        if (textView.getText().toString() != null
                && !textView.getText().toString().isEmpty() 
                && end > 0
                && textView.getText().toString().length() >= end) {
            invisible = textView.getText().toString().substring(start, end);    
        }
        return invisible;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a 32 bit long variable, CurrentPosition, that I want to split up
I have a textblock with a long text that is displayed in several lines
I want to generate several split buttons using jQuery UI. The buttons should fill
I have a String which can be very long so I want to split
How should one split up the controllers in an ASP.NET MVC site? For example,
I'm trying to split up a web site into two sections. One which should
I'm trying to split strings in C# like this COMMSTR1-NAC-NAM-P-C FCPANAM1-NAC-NAM-P-C CHAZEL1-NAT-CBM-P-C should be
I need to split long string into a array with following constrains: The input
How do I split a table: I have a table that i want to
I have a really long objective c function definition, and would like to split

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.