Hello,
i switched from default Xamarin.Froms ListView to the Telerik RadListView (currently only focusing on iOS). One thing that I can't figure out is how to add an animation when items are added to the list view. New items just appear without any animation.
Any ideas? Thanks!
6 Answers, 1 is accepted
Thanks for writing and for you question.
Here is more information about how animations are enabled on ListView for Xamarin.iOS:
http://docs.telerik.com/devtools/ios/listview/animations
Take a look and let me know if you need further assistance.
Regards,
Deyan
Telerik by Progress

Hi Deyan,
thanks for your help. I played around with it a bit. Setting the ItemAppearAnimation gives a strange effect when inserting an item to all items in the list. I put the example on Github TelerikListViewPoc
Can you please check! I also uploaded Video that shows the problem with the animation.
Thanks for writing.
Can you please point me to the place in the code where you are inserting items? I cannot seem to be able to find it in the Xamarin.iOS implementation.
Regards,
Deyan
Telerik by Progress

Hi Deyan,
yes, it is just here: https://github.com/esskar/TelerikListViewPoc/blob/master/TelerikListViewPoc/ViewModels/MainViewModel.cs#L29
I add an item to the observable collection, everything else is done by the data binding.
I will try to explain why the animations in iOS (native) and Xamarin.iOS differ. It turns out that the native iOS component has dedicated API for inserting, moving, deleting and reloading items with animation. However, when we implemented the Xamarin.iOS component we used different approach for doing these operations. Unfortunately, this alternative approach does not trigger the native animations.
We logged an item in our feedback portal so that you can follow and give your vote for it. This item serves us to monitor the demand of this feature and to evaluate its impact more precisely. Gathering more customer votes can lead to rising the priority of this task.
Regards,
Pavel R. Pavlov
Telerik by Progress