• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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








 
reply
    Bookmark Topic Watch Topic
  • New Topic