Animate tons of markers with Google Map on Android -


i trying fade in markers on google maps fragment this:

valueanimator animator = valueanimator.offloat(0, 1); animator.setduration(1000); animator.addupdatelistener(new valueanimator.animatorupdatelistener() {     @override     public void onanimationupdate(valueanimator animation) {         marker.setalpha((float) animation.getanimatedvalue());     } }); animator.start(); 

it works single marker when try 200 markers performance terrible , markers appear without animation. i'm going nuts here, help/idea/suggestion appreciated.

you may want check on related post. suggested use interpolator class apply animation on marker , handle in handler animation. check sample code snippet.

here threads might help:


Comments

Popular posts from this blog

php - Autoloader issue not returning Class -

java - How to put two numbers separated by a space into two different arrays -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -