Google地图标记中的气泡动画

时间:2018-12-07 13:32:28

标签: android google-maps google-maps-markers

如何在Swiggy中实现的Android中使Google Map中的标记周围出现气泡闪烁动画

enter image description here

1 个答案:

答案 0 :(得分:0)

请检查以下文档

https://github.com/gursuasik/GoogleMapsRippleEffect

下载

使用Gradle:在“依赖项”部分下:

compile 'com.github.aarsy.googlemapsrippleeffect:googlemapsrippleeffect:1.0.2'

示例如下

// mMap is GoogleMap object, latLng is the location on map from which ripple should start

mapRipple = new MapRipple(mMap, latLng, context);
mapRipple.withNumberOfRipples(3);
mapRipple.withFillColor(Color.BLUE);
mapRipple.withStrokeColor(Color.BLACK);
mapRipple.withStrokewidth(10);      // 10dp
mapRipple.withDistance(2000);      // 2000 metres radius
mapRipple.withRippleDuration(12000);    //12000ms
mapRipple.withTransparency(0.5f);
mapRipple.startRippleMapAnimation();