开发者

BlackBerry PaneManager (MVC) - how to block scrolling out of bounds

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
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜