如何在Swiggy中实现的Android中使Google Map中的标记周围出现气泡闪烁动画
答案 0 :(得分:0)
请检查以下文档
https://github.com/gursuasik/GoogleMapsRippleEffect
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();