Search code examples
listviewxamarinslidesmoothing

Xamarin forms listview add with slide function


I have created an app for my music station which adds the last played song to a listview. The listview will be updated when a song ends and a new song starts. Now I was wondering if it's possible that the newly added song can be added with some kind of slide function. So, if a new song will be added, the row smoothly slides down upon the top of the previous songs. I have searched if the ListView has such function but unfortunally I cannot find anything.

Thanks!


Solution

  • Unfortunately, listview usage is not very wide in Xamarin. But you can achieve this by creating custom Animations CustomRenderer.

    look how to make Renderer

    look how to make Animation

    Since Xamarin Forms is Cross-platform, there may be some shortcomings in the view. one of which is not the easy accessibility of the Animation feature.