Search code examples
blackberrylistfield

How to restrict the scroll to ListField itself instead of scrolling the whole screen in Blackberry


I have implemented a customized ListField with some LabelFields. Here is the screenshot. enter image description here

The problem is when I scroll the ListField, the whole scroll getting scrolled. Like this Screenshot..

enter image description here

I want the headerfield and the Field between header and the ListField to be stationary and only the listfield get scrolled. How can I achieve this?..Please help me...


Solution

  • Use setBanner(Field field) to create an area at the top of your screen which will always be visible.

    By the way, you almost certainly don't need a 'Back' button in the top bar (like you would on an iPhone app) because all BlackBerrys have a physical back button for this purpose. The default action for it is to close the current screen (by popping it off the screen stack) and returning to the previous screen or closing the app if there are no more screens.