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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:03:54+00:00 2026-05-30T14:03:54+00:00

Is it possible to place my list view UNDER my scrollview. I have a

  • 0

Is it possible to place my list view UNDER my scrollview. I have a page with a bunch of items that don’t fit on the screen so I use a scrollview. Then I want a listview to place comments under all of these items.

I have done a hack to measure the listview height and placed it inside the scrollview, but I know this is frowned upon so is there a way I can just place it under the scrollview? Sample code would be great. I have tried placing it under in XML, but it didn’t show on the screen. Thanks!

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

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:background="@drawable/backrepeat"
            android:orientation="vertical" >

            <ImageView
                android:id="@+id/imageView1"
                android:layout_width="fill_parent"
                android:layout_height="10dp"
                android:layout_gravity="center_vertical"
                android:src="@drawable/mainimage" >
            </ImageView>

            <View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" />

            <TextView
                android:id="@+id/Description"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#000000"
                android:gravity="center_horizontal"
                android:text="TITLE"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textColor="#ffffff" >
            </TextView>

            <View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" />

            <TextView
                android:id="@+id/tvTrack"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:layout_marginBottom="10dip"
                android:layout_marginTop="10dip"
                android:gravity="center_horizontal"
                android:text="Trackname"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textStyle="bold" >
            </TextView>

            <View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" />

            <TextView
                android:id="@+id/ratetitle"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#000000"
                android:gravity="center_horizontal"
                android:text="RATE"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textColor="#ffffff" >
            </TextView>

            <View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" />

            <RatingBar
                android:id="@+id/ratingbar"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:numStars="5"
                android:paddingBottom="6dp"
                android:paddingTop="10dip"
                android:stepSize="0.5" />

            <Button
                android:id="@+id/ratingbutton"
                android:layout_width="wrap_content"
                android:layout_height="40dp"
                android:layout_gravity="center_horizontal|center_vertical"
                android:layout_marginBottom="10dip"
                android:layout_marginTop="7dip"
                android:background="@drawable/pagebutton"
                android:gravity="center_horizontal|center_vertical"
                android:text="Submit Rating"
                android:textStyle="bold"
                android:textSize="10sp" >
            </Button>

             <View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" />

            <TextView
                android:id="@+id/favorite"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#000000"
                android:gravity="center_horizontal"
                android:text="FAVORITE"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textColor="#ffffff" >
            </TextView>

            <View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909"
                android:layout_marginBottom="10dip" />
            <RelativeLayout android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dip">

            <Button
                android:id="@+id/favoritebutton"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal|center_vertical"                  
                android:background="@drawable/pagebutton"
                android:gravity="center_horizontal|center_vertical"
                android:text="Add to Favorites"
                android:layout_marginLeft="7dip"
                android:layout_marginRight="7dip"
                android:textStyle="bold"
            >
            </Button>
            <ProgressBar
    android:layout_centerVertical="true"
    android:layout_centerHorizontal="true"
    android:id="@+id/progress_bar5"     
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content"
    android:gravity="center_horizontal|center_vertical"
    android:layout_gravity="center_horizontal|center_vertical"
    android:indeterminate="true"
    android:visibility="gone" />
            </RelativeLayout>

            <View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" />

            <TextView
                android:id="@+id/Description"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#000000"
                android:gravity="center_horizontal"
                android:text="DETAILS"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textColor="#ffffff" >
            </TextView>

            <View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909"
                android:layout_marginBottom="10dip" />

            <TextView
                android:id="@+id/tvTime"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:layout_marginLeft="10dip"
                android:layout_marginRight="10dip"
                android:gravity="center_horizontal"
                android:text="Tracktime"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textStyle="bold" >
            </TextView>

            <TextView
                android:id="@+id/tvViews"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:textStyle="bold" >
            </TextView>

            <TextView
                android:id="@+id/tvRatings"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:textStyle="bold" >
            </TextView>

            <TextView
                android:id="@+id/tvPlays"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:textStyle="bold" >
            </TextView>

            <TextView
                android:id="@+id/tvDownloads"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:layout_marginBottom="10dip"
                android:textStyle="bold" >
            </TextView>

            <View
                android:id="@+id/viewdesc1"
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" />

            <TextView
                android:id="@+id/Description2"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#000000"
                android:gravity="center_horizontal"
                android:text="DESCRIPTION"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textColor="#ffffff" >
            </TextView>

            <View
                android:id="@+id/viewdesc2"
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909"
                android:layout_marginBottom="10dip" />

            <TextView
                android:id="@+id/tvDescription"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:gravity="center_horizontal"
                android:layout_marginBottom="10dip"
                android:textAppearance="?android:attr/textAppearanceLarge" >
            </TextView>

            <Button
                android:id="@+id/playbutton1"
                android:layout_width="fill_parent"
                android:layout_height="50dp"
                android:layout_marginLeft="7dip"
                android:layout_marginRight="7dip"
                android:layout_marginTop="7dip"
                android:background="@drawable/pagebutton"
                android:text="PLAY"
                android:textStyle="bold" >
            </Button>

            <Button
                android:id="@+id/downloadbutton3"
                android:layout_width="fill_parent"
                android:layout_height="50dp"
                android:layout_marginBottom="30dp"
                android:layout_marginLeft="7dip"
                android:layout_marginRight="7dip"
                android:layout_marginTop="7dip"
                android:background="@drawable/pagebutton"
                android:text="DOWNLOAD"
                android:textStyle="bold" >
            </Button>

            <View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" />

            <TextView
                android:id="@+id/tvComments"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#000000"
                android:gravity="center_horizontal"
                android:text="COMMENTS"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textColor="#ffffff" >
            </TextView>

            <View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909"
                android:layout_marginBottom="10dip" />

            <ListView
            android:id="@+id/lvComments"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:background="#00000000"
            android:cacheColorHint="#00000000"
            android:divider="#00000000"
            android:listSelector="#00000000" />


            <EditText 
              android:id="@+id/etComments"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_marginTop="5dip"
              android:layout_marginBottom="5dip"
              android:layout_marginLeft="7dip"
              android:layout_marginRight="7dip"
              android:hint="Add comment..."
              android:singleLine="false"/>
            <Button
                android:id="@+id/btnAddComment"
                android:layout_width="fill_parent"
                android:layout_height="50dp"
                android:layout_marginBottom="30dp"
                android:layout_marginLeft="7dip"
                android:layout_marginRight="7dip"
                android:layout_marginTop="7dip"
                android:background="@drawable/pagebutton"
                android:text="Post Comment"
                android:textStyle="bold" >
            </Button>


        </LinearLayout>
    </ScrollView>

I did not include the ViewFlipper portion…

  • 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-30T14:03:55+00:00Added an answer on May 30, 2026 at 2:03 pm

    I solved the problem by placing everything above the list in a list header and everything below the list in a list footer. Thanks for the inputs!

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

Sidebar

Related Questions

Is it possible to programmatically place the contents of a web page into a
I have a quite complex View build-up, and as a part of that, I
In have a list of objects bound to a ListView that is used to
Ok,I'm trying to make a List view that will list some places ,where each
We have a custom list that has a column called Connection Date and need
Is there a place to find a list of the possible values for the
Is it possible to place a linked list index before the output of result
Is it possible to place Facebook's request form inside a popup? Google is failing
Hi is it possible to place an icon in the title of a titledBorder
is it possible to place a button in TabContainer header on the left side

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.