This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Similar Threads
How to control scroll bars upto listview height.
Layout question.
how can we view the two lists on a single display???
how to inflate footer layout below listview without empty space
how to put layout in middle of the screen?