title: How to make ripple around circle image in google map Custom marker?
body: <p>this may be dumb question but i couldn't find any solution with previous answer regarding this question now let me post my question i need to make ripple effect around circle image in google map marker ,  now let me post what i have tried so far:</p>
  
  <pre><code>  @Override
      public void onLocationChanged(final Location location) {
          mLastLocation=location;
          GradientDrawable d = new GradientDrawable();
          d.setShape(GradientDrawable.OVAL);
          d.setSize(500,500);
          d.setColor(0x555751FF);
          d.setStroke(5, Color.TRANSPARENT);
  
          Bitmap bitmap = Bitmap.createBitmap(d.getIntrinsicWidth()
                  , d.getIntrinsicHeight()
                  , Bitmap.Config.ARGB_8888);
          final Canvas canvas = new Canvas(bitmap);
          d.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());
          d.draw(canvas);
          final int radius = 100;
          final GroundOverlay circle = mMap.addGroundOverlay(new GroundOverlayOptions()
                  .position(new LatLng(location.getLatitude(),location.getLongitude()), 2 * radius).image(BitmapDescriptorFactory.fromBitmap(createMarker(TrackingActivity.this,new LatLng(location.getLatitude(),location.getLongitude())))));
          ValueAnimator valueAnimator = new ValueAnimator();
          valueAnimator.setRepeatCount(ValueAnimator.INFINITE);
          valueAnimator.setRepeatMode(ValueAnimator.RESTART);
          valueAnimator.setIntValues(0, radius);
          valueAnimator.setDuration(3000);
          valueAnimator.setEvaluator(new IntEvaluator());
          valueAnimator.setInterpolator(new AccelerateDecelerateInterpolator());
          valueAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
              @Override
              public void onAnimationUpdate(ValueAnimator valueAnimator) {
                  float animatedFraction = valueAnimator.getAnimatedFraction();
                      circle.setTransparency(animatedFraction);
                //  circle.setDimensions(animatedFraction * radius * 2);
              }
          });
          valueAnimator.start();
          //       mMap.addMarker(new MarkerOptions().position(new LatLng(location.getLatitude(),location.getLongitude())).icon(BitmapDescriptorFactory.fromBitmap(createMarker(this,new LatLng(location.getLatitude(),location.getLongitude())))));
          closeDialog(); 
  
  
     public  Bitmap createMarker(Context context, LatLng point) {
          int px = context.getResources().getDimensionPixelSize(R.dimen.map_marker_diameter);
          View markerView = ((LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.circle_imgview, null);
          markerView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));
          markerView.layout(0, 0, px, px);
          markerView.buildDrawingCache();
          CircleImageView bedNumberTextView = markerView.findViewById(R.id.circleimg);
          Bitmap mDotMarkerBitmap = Bitmap.createBitmap(px, px, Bitmap.Config.ARGB_8888);
          Canvas canvas = new Canvas(mDotMarkerBitmap);
             Picasso.with(this).load("https://fww").into(bedNumberTextView);
          markerView.draw(canvas);
          return mDotMarkerBitmap;
      }
  }
  </code></pre>
  
  <p>The above code make my entire circle image ripple , but i only want to make ripple around my circle image how can i achieve this. Even i have tried using third party ripple animation and wrap my image inside that animation but it is not working to how can i achieve this friends. Thanks in advance!!</p>