Home > Enterprise >  Xamarin forms listview add with slide function
Xamarin forms listview add with slide function

Time:09-22

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!

CodePudding user response:

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.

  • Related