This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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








 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to expand listview with footer click event to load more data