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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:31:19+00:00 2026-05-22T23:31:19+00:00

Good Afternoon, I have a list being generated gradually on the users screen, (right

  • 0

Good Afternoon,

I have a list being generated gradually on the users screen, (right now the list is sitting in a scrollview but that might not be the final resting place.) Above the scrollview are a few buttons, and below the scrollview are a few buttons. Scrollview takes up whole middle of the screen.

Right now, as the list is generated, it goes under the buttons below the scrollview. I would like it however to stop at the top. Also looking for it to always display the last line, rather than the new information start disappearing at the bottom.

I know this is probably confusing so if you have any questions please let me know.

Right now the XML looks a little something like this, and its layed out in this order on the screen too.

    <Button 
    android:text="Ok" 
    android:id="@+id/buttonOk"
    android:layout_height="wrap_content" 
    android:layout_width="75sp"
    android:layout_below="@+id/textHoleNumber"
    android:layout_alignParentRight="true"></Button>

<ScrollView <-- ***would like this to line up under the OK button***
    android:layout_height="wrap_content"  
    android:id="@+id/scrollView1" 
    android:layout_width="fill_parent"
    android:layout_below="@+id/buttonMinus">

    <TextView 
        android:id="@+id/textScoreCard" 
        android:layout_height="wrap_content" 
        android:text="Score card info goes here" 
        android:textSize="20sp" 
        android:layout_width="fill_parent"></TextView>

</ScrollView> <-- ***would like this to stay above linear layout***

<LinearLayout 
    android:layout_width="fill_parent" 
    android:id="@+id/linearLayout1" 
    android:layout_height="wrap_content" 
    android:layout_alignParentBottom="true">

    <Button 
        android:layout_height="wrap_content"
        android:layout_width="0dip" 
        android:layout_weight="1"
        android:id="@+id/buttonSave" 
        android:text="Save"></Button>

    <Button 
        android:id="@+id/buttonReset" 
        android:layout_height="wrap_content"
        android:layout_width="0dip" 
        android:layout_weight="1"
        android:layout_toRightOf="@+id/buttonSave"
        android:layout_alignTop="@+id/buttonSave" 
        android:layout_alignBottom="@+id/buttonSave"
        android:text="Reset"></Button>

</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-22T23:31:20+00:00Added an answer on May 22, 2026 at 11:31 pm

    If you’re talking about what I think you are, try adding a margin to the bottom of the scrollview, and a negative margin to the top of the linear layout. For instance:

    <ScrollView android:id="@+id/scrollView1" 
                android:layout_width="fill_parent" 
                android:layout_height="fill_parent" 
                android:layout_marginBottom="60sp">
            <LinearLayout android:id="@+id/linearLayout1" 
                          android:layout_width="fill_parent" 
                          android:layout_height="fill_parent">
            </LinearLayout>
    </ScrollView>
    
    <LinearLayout android:id="@+id/linearLayout2" 
                  android:layout_width="fill_parent" 
                  android:layout_height="wrap_content" 
                  android:layout_marginTop="-60sp">
    </LinearLayout>
    

    As for scrolling to the bottom of the scrollview when a new item is added, look at How to scroll to bottom in a ScrollView on activity startup.

    Note: This is assuming you have your ScrollView and the LinearLayout beneath it all contained in a vertical LinearLayout.

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

Sidebar

Related Questions

Good afternoon all. I have a page that displays data in a gridview based
Good afternoon everybody! I have this threaded SerialPort wrapper that reads in a line
Good Afternoon All, I have written an SSIS 2005 package that contains a conditional
Good afternoon, I have three entities (that concern this question) Company (ID, etc..) CompanyAddress
Good afternoon people's I have built a jquery plugin that I use on my
Good afternoon, everybody. I have a doubt. I have a WHILE, and accurate list
Good afternoon. I have been making a small openGL based app for android that
Good afternoon In Java, I have HashSet which contain list of Object User which
Good Afternoon, I have a html aspx page that has many many div elements.
Good afternoon, I wish to have a script that will look for all files

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.