File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes How to control scroll bars upto listview height. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to control scroll bars upto listview height." Watch "How to control scroll bars upto listview height." New topic
Author

How to control scroll bars upto listview height.

Senthil Ganesan
Greenhorn

Joined: Jul 29, 2010
Posts: 16
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

Joined: Oct 12, 2008
Posts: 1369
    
    1

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.


[List of FAQs] | [Android FAQ] | [Samuh Varta]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to control scroll bars upto listview height.