How do I disable the "elastic" scrolling in a BlackBerry PaneManagerModel/View and HorizontalScrollableTitleVie开发者_运维技巧w/HorizontalScrollableController?
I mean: when I drag the leftmost pane to the right (dragging the title bar), the white background appears, and when I lift my finger, it bounces back.
I find it very annoying, I suppose it's a feature of the PaneManagerView, or the HorizontalScrollableTitleView, can I disable it?
What about adding a ScrollChangeListener
to the View that adjusts the scroll whenever it goes beyond the bounds? For example:
public void scrollChanged(Manager mgr, int newHorizScroll, int newVertScroll) {
if (newHorizScroll < 0) {
setHorizontalScroll(0);
}
// and so on
}
精彩评论