creating a custom centered cyclic horizontal manager

Posted by Hezi on Stack Overflow See other posts from Stack Overflow or by Hezi
Published on 2010-03-31T04:49:16Z Indexed on 2010/03/31 4:53 UTC
Read the original article Hit count: 494

Filed under:
|
|
|

Trying to create a custom cyclical horizontal manager which will work as follows. It will control several field buttons where the buttons will always be positioned so that the focused button will be in the middle of the screen. As it is a cyclical manager once the focus moves to the right or left button, it will move to the center of the screen and all the buttons will move accordingly (and the last button will become the first to give it an cyclic and endless list feeling)

Any idea how to address this?

I tried doing this by implementing a custom manager which aligns the buttons according to the required layout. Each time moveFocus() is called I remove all fields (deleteAll() ) and add them again in the right order. Unfortunately this does not work.

© Stack Overflow or respective owner

Related posts about blackberry

Related posts about manager