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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:58:47+00:00 2026-05-31T09:58:47+00:00

I am splitting the screen with 2 linear layouts containing text view and this

  • 0

I am splitting the screen with 2 linear layouts containing text view and this may contain large number of lines hence using scrolls but the first we lines are scrapped off and cannot view it.

Following is a code snippet

  <LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="200dp"
    android:orientation="vertical" >

    <ScrollView
        android:id="@+id/ScrollView01"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >

        <TextView
            android:id="@+id/question"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="Question"
            android:textSize="20dp" >
        </TextView>
    </ScrollView>
</LinearLayout>

<LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="250dp"
    android:orientation="vertical" >

    <ScrollView
        android:id="@+id/ScrollView"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >

        <TextView
            android:id="@+id/answer"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="Answer"
            android:textSize="20dp"
            android:visibility="invisible" >
        </TextView>
    </ScrollView>
</LinearLayout>
  • 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-31T09:58:48+00:00Added an answer on May 31, 2026 at 9:58 am

    Rather than going for two seperate ScrollViews you can always opt out for few properties setting in your layout.

    Set the android:maxLines and android:scrollbars = "vertical" property for both the textview’s and then in your corresponding activity do this for both the textview’s

    TextView textDisplayed =(TextView) findViewById(R.id.textView1); 
    textDisplayed.setMovementMethod(new ScrollingMovementMethod());
    

    Hope this helps.You might also want to have a look at this link

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

Sidebar

Related Questions

I have encountered an issue while splitting the screen using a linearLayout, My target
I'm using this tutorial to create a full screen background. I want my content
I'm seeking a solution to splitting a string which contains text in the following
I have this code for splitting input list into its halves. It seems to
I've found view models to be very useful for splitting user interface and business
With ASP.NET's view engine/template aspx/ashx pages the way to spit to screen seems to
You have all met this scenario. I am using a new algorithm for the
What is the best way to go about using large textures with opengl on
Do splitting fields into multiple tables ever yield faster queries? Consider the following two
I am working on splitting out an existing, working application that I currently have

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.