permaculture playing cards*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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

How to control scroll bars upto listview height.

Senthil Ganesan

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

Joined: Oct 12, 2008
Posts: 1369

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:
subject: How to control scroll bars upto listview height.
Similar Threads
how to inflate footer layout below listview without empty space
Floating view below ListView
list view problem
Layout issue-footer image to the bottom of screen (Landscape & portrai) irrespective of body content
How to expand listview with footer click event to load more data