Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to control scroll bars upto listview height.

 
Senthil Ganesan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
friend's I am facing problem in scrolling of listview,while inflating footer layout.the listview shows 10 records initially and i have click event to append more data below my last list row content,after clicking to view more data,the data has been binded and the listview focussed to firstrow and when i scrolled down to view new loaded data,after last list row the scrollbars continue to scroll on inflated footer layout and the empty space has been created between the list and inflated layout,so here i need not to scroll after last list row,how can i stop the scroll controller upto list content.

here my code for footer.xml layout <


and i have main layout with tabs and menu's and several ListView.


Thanks in advance.
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd imagine there would be a scrollTo(pos)/scrollBy() in the ListView APIs. If not, you can always use setSelection(position) if you have the position cached.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic