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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:23:56+00:00 2026-05-23T20:23:56+00:00

I am adding a scroll view for whole layout. Inside that layout I am

  • 0

I am adding a scroll view for whole layout. Inside that layout I am adding a lot of view list view and fixed footer. My list view content is not displaying properly. Its height is very short. Without scroll view it appears correctly. Can anybody tell me what the problem is and how to resolve it? list view is loading dynamically. My xml file is given below:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent" >


  <ScrollView android:id="@+id/mainScrollView"
        android:layout_width="fill_parent" android:layout_height="wrap_content"
        android:layout_weight="1" xmlns:android="http://schemas.android.com/apk/res/android"
        android:fillViewport="true" android:scrollbars="none" android:isScrollContainer="false">


 <RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content">




  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:id="@+id/mainLinear"
  android:gravity="left" >
     <ImageView android:src="@drawable/day2" android:gravity="center"   android:id="@+id/imgDay" android:layout_width="wrap_content" android:layout_height="wrap_content"></ImageView>
        <ImageView android:src="@drawable/meetingtimetable2"    android:gravity="center"  android:id="@+id/txtMeeting" android:layout_width="wrap_content" android:layout_height="wrap_content"></ImageView>
   <ImageView android:src="@drawable/eventschedule2"   android:gravity="center"  android:id="@+id/imgEvent" android:layout_width="wrap_content" android:layout_height="wrap_content"></ImageView>
  </LinearLayout>


   <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
     android:layout_below="@+id/mainLinear"
       android:background="@drawable/day3"
       android:paddingTop="10dip"
        android:id="@+id/commonLinear">
    <include
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:id="@+id/commonLayout"
    layout="@layout/common"/>
  </LinearLayout>



  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:id="@+id/chkLinear"
  android:background="@drawable/meetingtimetable3"
   android:layout_below="@+id/mainLinear"
    android:layout_toRightOf="@+id/commonLinear"
     android:orientation="vertical">



   <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
     android:id="@+id/subLinear"
     android:layout_marginLeft="5dip"
     android:paddingTop="10dip"
     android:layout_marginBottom="5dip"
    android:gravity="center" >
    <Button android:background="@drawable/meetingrequestrecieved" android:layout_marginRight="5dip"  android:gravity="left"  android:id="@+id/btnMeetingRequest" android:layout_width="wrap_content" android:layout_height="wrap_content" ></Button>
 <Button android:background="@drawable/newmeeting" android:layout_width="wrap_content" android:gravity="left" android:layout_height="wrap_content"  android:id="@+id/btnSendNewRequest"></Button>

</LinearLayout>



  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:id="@+id/listLinear"
  android:layout_toRightOf="@+id/commonLinear"
  android:layout_below="@+id/subLinear"
  android:gravity="left"
  android:paddingRight="5dip">
   <ListView  android:id="@+id/lstSendMeeting" android:scrollingCache="false"  android:layout_width="300dip" android:layout_height="wrap_content"></ListView>
    </LinearLayout>

   </LinearLayout>

</RelativeLayout>
</ScrollView>

<!-- footer -->

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
       android:id="@+id/bottomLinear1">
    <include
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:id="@+id/commonLayout1"
    layout="@layout/commonbottom"/>
  </LinearLayout>

</RelativeLayout>

Thanks

  • 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-23T20:23:57+00:00Added an answer on May 23, 2026 at 8:23 pm

    You can’t add a ListView inside of ScrollView

    Check this out How can I get my ListView to scroll?

    But seems this guy made it work. Which is Great.

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

Sidebar

Related Questions

i have an scroll view and i am adding few views to that when
Im adding textboxes (not a fixed number of textboxes) dynamically to a form on
I'm trying to work with a scroll view controller that needs to adjust it's
I know it is not possible in Android to scroll grid view horizontally. But
I resized the view that I put into a UIScrollView, but the scroll view
Adding an element to the head of an alist (Associative list) is simple enough:
Summary I'm repurposing Apple's Page Control project. In loadScrollViewWithPage:, the view controllers that I'm
So I'm adding a tab panel to a child window. A lot of our
I am building an application that must add an overlay view once a scrollview
I have a scroll view and I need to reload the contents often while

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.