Code example for Paint

Methods: setColorFilter

0
        mMapPinPaint.setAlpha(alpha);
    } 
 
    @Override 
    public void setColorFilter(ColorFilter cf) {
        mMapPinPaint.setColorFilter(cf);
    } 
 
    @Override 
    public int getOpacity() { 
        return PixelFormat.TRANSLUCENT;
    } 
}