Code example for Paint

Methods: setAntiAliassetColorsetStrokeWidthsetStyle

0
        private final Paint mMediumPaint;
 
        public PathsView(Context c) {
            super(c);
 
            mMediumPaint = new Paint();
            mMediumPaint.setAntiAlias(true);
            mMediumPaint.setColor(0xe00000ff);
            mMediumPaint.setStrokeWidth(10.0f);
            mMediumPaint.setStyle(Paint.Style.STROKE);
        } 
 
        @Override 
        protected void onDraw(Canvas canvas) {
            super.onDraw(canvas);
             
            Log.d("OpenGLRenderer", "Start frame");
 
            canvas.drawARGB(255, 255, 255, 255);
 
Contextual code suggestions in your IDE  Get Codota for Java