android paint line stroke code example Example: android canvas line thickness Paint myPaint = new Paint(); myPaint.setStrokeWidth(8)