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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:14:51+00:00 2026-05-26T05:14:51+00:00

In my Java android application I use a listview to display information loading from

  • 0

In my Java android application I use a listview to display information loading from the SQLite DB And a page footer also there in this page.

The problem is When there are more items loaded to the listview and need to scroll, since footer appears in the bottom of the page, the footer covers the the last item in the listview.

Simply I want to stop overlapping listview items by the footer.

Can any one help me achieve this please. Thanks inadvance.

Edits

<RelativeLayout android:id="@+id/relativeLayout1" android:layout_height="wrap_content" android:layout_width="match_parent">

    <ListView android:layout_width="match_parent"    
              android:layout_height="wrap_content" 
              android:id="@+id/companylistView"
              android:listSelector="@drawable/item_focus_bkg">
              </ListView>


    <LinearLayout android:id="@+id/linearLayout1" android:layout_height="wrap_content" android:layout_width="match_parent" android:orientation="vertical" android:layout_alignParentBottom="true" android:background="@android:color/darker_gray" >
        <TextView android:text="Footer Text" 
                  android:id="@+id/textView1" 
                  android:layout_width="wrap_content" 
                  android:layout_height="wrap_content" 
                  android:textColor="#000000" >
                  </TextView>       
    </LinearLayout>       


</RelativeLayout>
  • 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-26T05:14:51+00:00Added an answer on May 26, 2026 at 5:14 am

    Based on your requirement(And as you haven’t posted XML layout here that you have tried so far), i assume and can suggest the following:

    1. give bottom margin to your listview: android:layout_marginBottom="60dip"
    2. If you are using RelativeLayout then just give listview as android:layout_above="@+id/footer"

    I suggest to you go with 2nd option.

    Update:

    Based on the XML you have posted, try this correct XML layout:

    <RelativeLayout 
        android:id="@+id/relativeLayout1" 
        android:layout_height="wrap_content" 
        android:layout_width="match_parent"
        xmlns:android="http://schemas.android.com/apk/res/android">
    
        <ListView android:layout_width="match_parent"    
                  android:layout_height="match_parent" 
                  android:id="@+id/companylistView"
                  android:layout_above="@+id/textView1">
        </ListView>
    
        <TextView 
            android:text="Footer Text" 
            android:id="@+id/textView1"
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content"
            android:textColor="#000000" 
            android:layout_alignParentBottom="true">
        </TextView>       
    </RelativeLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a android webservice client application. I am trying to use the java
More specifically, is it possible for an non-android Java application to use android's speech
I'm trying to use Android Application class (MyApplication.java) for storing data in some ArrayLists
I'm trying to use Android Application class (MyApplication.java) for store data in some ArrayList
1).Is it legal to use wmqtt.jar with Mosquitto broker for Android application? 2).Are there
I develop android application in java. And, this application connects .net soap application. It
My Android application uses Java OAuth library, found here for authorization on Twitter. I
what is annotation class. what is the use of it in java/android. In iphone
I'm new to Java/Eclipse/Android, so this is probably an easy (if not stupid) question:
Firstly I am new to android and Java so this is a beginners question.

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.