Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Senthil Ganesan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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








 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic