PeterStaev / NativeScript-Grid-View

A NatvieScript GridView widget.
Apache License 2.0
49 stars 28 forks source link

Animation on load #42

Closed darko-bw closed 6 years ago

darko-bw commented 6 years ago

Is it possible to control or disable animation of cells on page load? If possible to get them appear from the bottom and not from the left it would be cool. Or just completely disable it.

Thank you.

PeterStaev commented 6 years ago

Hey @vasilyzakharov , this is currently not possible and is valid only for android. So you can see for example this one: https://stackoverflow.com/questions/29831083/how-to-use-itemanimator-in-a-recyclerview on how to implement a custom animator and set it to native instance:

gv.android.setItemAnimator(animator)
PeterStaev commented 6 years ago

No further response so closing this one for now.

razorsyntax commented 5 years ago

@PeterStaev When you mentioned:

this is currently not possible and is valid only for android

Does this mean it's not possible because there's no way to implement because of issues with the underlying iOS and Android code, or that there just hasn't been any work in the plugin to make this happen?

PeterStaev commented 5 years ago

Hey @razorsyntax , the link above on Stack Overflow shows how you can implement a custom animator and I gave below how you can set it to the native instance so you can disable the animation.

I meant that disabling the animation inside the widget itself is not built-in and the user must write their own code if they wish to disable/change the animation.

razorsyntax commented 5 years ago

Thanks, man! If I manage get something working I'll try and submit a PR.