07-04-2011 07:59 AM
I want to give sliding animation effect when scrolling is done, thus I used setHorizontalScroll(int position, boolean animate) with animate = true,
In JDE 6 it works perfectly and correctly,
In JDE 5 for non-touch devices it does not work at all i.e scroll is done but animation does not occurs
For JDE 5 touch device scroll is done with animation but scroll set to incorrect position
For e.g.. setHorizontalScroll(360,true) in result it sets to 273.
Solved! Go to Solution.
07-06-2011 01:58 PM
The ScrollView class was added in version 6.0, which means you cannot use it in 5.0.
07-08-2011 01:26 PM
This isn't a bug. The class you are trying to use was not created until 6.0.
07-14-2011 12:56 PM
What class are you using? ScrollView was added in 6.0.
07-15-2011 06:56 AM
I am using custom class which extends HorizontalFieldManager.
And in navigationMovement method I am setting setHorizontalScroll(360,true);
My horizontal manager has greater than 1000 width and it is scrollable.
Moreover I did POC simple in a verticalFieldManager I added horizontal Manager scrollable and has enough width for scrolling and on button click it try horizontalManager.setHorizontalScroll(100,true);
It set the horizontal scroll to 100 but without animation. I tried in blb 9630
07-15-2011 12:49 PM
The ScrollView class that was added in version 6.0 is responsible for the animations you see when scrolling. Many of its methods are part of the base Manager class, which is what you are using in 5.0. The base methods in Manager do not contain animations.
So while the methods do exist in 5.0, the animation feature you are looking for was added in 6.0 by way of the ScrollView class.