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

The Archive Base Latest Questions

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

I have a situation about in using ListView and found that if I set

  • 0

I have a situation about in using ListView and found that if I set up a absolute height let say 100dp, then the ListView become unrollable even though items do out of bound. However, this won’t happen when I set the height as wrap_content, but this must be fill in the whole screen if the item list is longer than the screen size. I do need a ListView that stay above a control bar that is in the bottom of the screen.

<RelativeLayout >
<ListView
        android:id="@+id/eventitems"
        android:layout_width="fill_parent"
        android:layout_height="100dp"
        android:layout_alignParentLeft="true"/>
 <LinearLayout
        android:id="@+id/widget53"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true" >
        <Button />
        <EditText />
        <Button />
    </LinearLayout>
</RelativeLayout>

now, if the Item list is longer enough, the bottom item won’t show and the ListView can’t be rolled. if wrap_content, the latest item will show under the 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:32:58+00:00Added an answer on May 31, 2026 at 9:32 am
    <RelativeLayout >
         <ListView
            android:id="@+id/eventitems"
            android:layout_width="fill_parent"
            android:layout_height="warp_content"
            android:layout_alignParentLeft="true"
            android:layout_above="@+id/widget53"/>
         <LinearLayout
            android:id="@id/widget53"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_alignParentBottom="true"
             >
            <Button />
            <EditText />
            <Button />
        </LinearLayout>
    </RelativeLayout>
    

    Try this.. Note that I have added a layout_above attribute to the listview and removed the parenttop from your LinearLayout and added a parentbottom attribute.

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

Sidebar

Related Questions

I have searched on this and found something about using remotely hosted JSPs but
Can someone assist in creating a Regex for the following situation: I have about
Okay, here's the situation: We have a table of about 50 columns (created by
I'm in a bit of a doubt about this subject. Situation: I have conducted
I have already posted a question about this, but the situation has changed sufficiently
I have a question about getting DLL's directory on Windows system. The situation is
I have a question about jQuery load best practice. Imagine the following situation: $(#div).on('click',
I have a bit of a situation. I've consumed about fourty-eleven different tutorials/books/videos on
Here's my situation. I have followed the exact instructions on wordpress codex page about
First, a little explanation about my situation: I have a sample interface which is

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.