aspose file tools*
The moose likes Android and the fly likes How to expand listview with footer click event to load more data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to expand listview with footer click event to load more data" Watch "How to expand listview with footer click event to load more data" New topic
Author

How to expand listview with footer click event to load more data

Senthil Ganesan
Greenhorn

Joined: Jul 29, 2010
Posts: 16
friend's,
I have a listview with footer have button click event,initially the listviw shows 10 records from parsed url in list view and from footer i have a button to bind more data by parsing the next page url,i set footer in java code before my setAdapter(),i have footer.xml file and i had inflated it in my code when i needed,initially the footer with button visible at last row of listview,when i fired click event to load more data,the data has been binded well,but footer getting expanding blank space and it's hided.here i need to avoid the space between the listview and footer......

Here my code for footer

initial page dispaly


----------------------------------------
| row1
| ----------------
| row2
|------------------------
| Button (footer)


after clicking button to bind more data,the page appears has below
----------------------------------------
| row1
| ----------------
| row2
|------------------------
| row3
|----------------------------------
| row4
|---------------------------------------
|
|
|
|
| Button (footer)

the blank space between last list row and footer getting expanded,i don't want it to like the above ,i need to have the footer view after last rows listview.
Please help me to get it or provide any sample to do the same with someother way.

Thanks in adavnce








 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to expand listview with footer click event to load more data