BlackBerry - Custom centered cyclic HorizontalFieldManager

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/04/18 9:03 UTC
Read the original article Hit count: 575

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 gui