Code example for Paint

Methods: setAlphasetAntiAliassetColorsetStrokeWidthsetStyle

0
 
    @Override 
    public void draw(Canvas canvas, MapView mapView, boolean shadow) {
        super.draw(canvas, mapView, shadow);
 
        paint.setColor(colour);
        paint.setAlpha(ALPHA);
        paint.setAntiAlias(true);
        paint.setStrokeWidth(STROKE);
        paint.setStyle(Paint.Style.STROKE);
 
        redrawPath(mapView);
        canvas.drawPath(path, paint);
    } 
 
    private void redrawPath(final MapView mv) {
        final Projection prj = mv.getProjection();
        path.rewind();
        final Iterator<GeoPoint> it = mOverlays.iterator();
        prj.toPixels(it.next(), p);
Stop searching for code, let great code find you!  Add Codota to your java IDE