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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:01:50+00:00 2026-06-03T22:01:50+00:00

Following is my XML of my view. (I only added the structure). The problem

  • 0

Following is my XML of my view. (I only added the structure). The problem is when I have few elements in the list view (dynamically generated), the output will show everything up to last buttons. But once the view grow passing the screen size elements after the listview do not show. But all the elements in the list view appear. How to fix it from changing this XML.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">
<TableLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">
    <TableRow >
    <TextView 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
    <TextView 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
    </TableRow>
</TableLayout>
<ListView 
    android:id="@android:id/list"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content">
</ListView>
<TableLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">
    <TableRow >
    <TextView 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
    <TextView 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
    </TableRow>
</TableLayout>
<Button 
     android:layout_height="wrap_content"
     android:layout_width="fill_parent" />
<Button 
     android:layout_height="wrap_content"
     android:layout_width="fill_parent"/>
</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-06-03T22:01:52+00:00Added an answer on June 3, 2026 at 10:01 pm

    ListView are hungry for height. The worst case of presenting ListView is to give it height of wrap_content.

    As your Items in ListView grow bigger, ListView increases its height to wrap its content, so as a result it pushes other Views out of the screen.

    I’ll suggest you to give it height of fill_parent and play around with layout_weight params.

    For further reference, I’ll recommend you to read this article about using RelativeLayout to adjust ListView with other View and ViewGroup.

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

Sidebar

Related Questions

I have the following XML :- <inventory> <item> <name_element> <!--some structure--> </name_element> <some_element1>val1</some_element1> <some_element2>val2</some_element2>
I have the following XML structure: <agencies> <city> <name>New York</name> <address>Street A, 101</address> <phone>111-222-333</phone>
Currently, I have the following structure for my project Foo : foo-parent +- pom.xml
I have a TextView with the following XML (it's the only thing in the
I have the following XML Document: <?xml version=\1.0\ encoding=\UTF-8\?> <atom:entry xmlns:atom=\http://www.w3.org/2005/Atom\ xmlns:apps=\http://schemas.google.com/apps/2006\ xmlns:gd=\http://schemas.google.com/g/2005\> <apps:property
I have the following xml - <Surveys xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:noNamespaceSchemaLocation=ImmForm XML Schema NHS Direct.xsd><Svy SurveyName=WeeklyFluSurveillance2012/13-NHSDirectWeek40w/e07/10/2012
I have the following XML: <TRUCK Counter=0> <CARRIER>A PLUS EXPEDITING &amp; LOGISTICS INC.</CARRIER> <CARRIERPHONE>(000)000-0220</CARRIERPHONE>
I have the following XML File: <persons> <person name=shawn> <age>34</age> <hair style=spikes>red</hair> </person> <person
I have the following XML: <test> <a></a> <a><a1><c type=5/></a1></a> <a><a2><a1><c type=5/></a1></a2></a> <a><a2><a1><c/></a1></a2></a> <a><c type=6/></a>
I have the following xml that I need to get 2 values (see *

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.