This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: How to control scroll bars upto listview height.
It's not a secret anymore!