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: give bottom margin to your listview: android:layout_marginBottom="60dip 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="schemas.android.com/apk/res/android.
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: give bottom margin to your listview: android:layout_marginBottom="60dip" 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.
The problem is If I give android:layout_above="@+id/footer" for the list view, and if 1 or 2 items load to the listview the list view just appearing on top of the footer. Overlaping is ok but it has a big space on top of the listview since list view placed in the below of the page. – JibW Oct 11 at 10:23 I added the XML file as the edits.... – JibW Oct 11 at 10:29 @JibW check updated answer and correct your xml layout as same.
– Paresh Mayani Oct 11 at 10:36 Again when there are 1 or 2 elements(Less elements than the page height) in the listview, A space appearing on top of the listview. I need the list view to start from the top of the page and the footer to be appeared in the bottom of the page. – JibW Oct 11 at 10:54 1 Paresh Thank you very much it works fine, Yesterday I added android:layout_above="@+id/footer" for my previous layout.
Where I had gone wrong please? – JibW Oct 11 at 11:27.
You should use list footer like this: View footerView = ((LayoutInflater)getApplicationContext(). GetSystemService(getApplicationContext(). LAYOUT_INFLATER_SERVICE)).
Inflate(R.layout. Listview_footer, null, false); list. AddFooterView(footerView,null,false); try this.
In this way it creates a footer for the listview. When there are more items load to the listview, in the screen User can not see the footer since it appear in the end of the listview. What I want is to have a footer everytime on the screen even when no data, less data or too many data loaded to the listview.
– JibW Oct 11 at 10:31 no the footer will be available in the bottom of the screen... – Vineet Shukla Oct 11 at 10:33 When there are many items loaded to the listview and need to scroll the footer can not be seen in the page. When scroll until end of the list only its there. And also when 1 or 2 records in the listview rather than or appearing in the bottom of the page it appears in the end of the list view.
– JibW Oct 11 at 10:50 have you used the above code for footer view. Refer this:developer.android. Com/reference/android/widget/… – Vineet Shukla Oct 11 at 10:52 1 In this way we can add a footer to the listview.
Not for the page. I need to add a footer to the page(always to appear in the bottom of the page even when many items are in listview or less items in the listview). – JibW Oct 11 at 10:58.
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.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.