animation in TableView scrollToIndex
Hi,
I don't understand how can I use the second argument (properties) in Titanium.UI.TableView.scrollToIndex.
My TableView renders showing the first row (index 0) and so on. I would like it to scroll with animation (possibly with easing out) to an arbitrary index lower in the tableview (eg. index 25).
Best regards,
Matej
4 Answers
-
Thank you for your answer.
I'm developing an app for Android and the method scrollToIndex works as expected (it jumps to the row with specified index).Instead of jumping I would like it to smoothly scroll with animation, but I don't know how to specify the animation properties.
Thank you,
Matej -
try this way ( untested)
the_table.scrollToIndex( 3, {animation:Titanium.UI.ANIMATION_CURVE_EASE_OUT});
Let me know, I might need it as well :)
-
Than you, Tamas..
It's not working. I also tried with an animation object, but to no avail..
Maybe it works only on iPhone, as I found a number of examples here on the forum, which use scrollToIndex with animation.Maybe someone from the development team could shed some light on this?
Pretty please? :)
-
The second argument gives you the final position of the row you scroll to
http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.iPhone.TableViewScrollPosition-object