Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blackberry - Auto scroll vertical field manager

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

like image 403
Afzal Avatar asked Jan 05 '10 12:01

Afzal


1 Answers

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))
like image 126
Maksym Gontar Avatar answered Sep 29 '22 08:09

Maksym Gontar