Blackberry - Auto scroll vertical field manager

2019-04-08 15:45发布

问题:

How can I programatically scroll a screen in a specific direction without changing focus. For eg. as we scroll down to a Feed in FaceBook app, it automatically scrolls the screen to fit all the text in the center of the screen.

Can this be done in Blackberry Java Development ?

Thanks. Afzal

回答1:

You should be able to do this if:

  1. use VERTICAL_SCROLL style in manager constructor (or HORIZONTAL_SCROLL)
  2. use setVerticalScroll(int) manager method (or setHorizontalScroll(int))