Scrolling ListView in Blackberry 10 SDK beta 2

I need to add new items to my ListView and scroll it automatically. I created the application and it worked well for the Beta 1 SDK, but it does not work properly for Beta 2. For example, I have 20 items in the ListView, and the first 5 of them are visible on the screen. If I call from my method in C ++ something like:

listView->scrollTo(ScrollPosition::End)

I see only the last item at the top of the ListView. I can scroll it manually and it will work fine, but I cannot do the same from the code.

+5
source share
1 answer

The API documentation is not explicit, but implies the behavior you see. You can use an alternative method: scrollToItem ()

+1
source

All Articles