android Programming Glossary: canvas.drawpaint
How to make view resizable on touch event http://stackoverflow.com/questions/10188478/how-to-make-view-resizable-on-touch-event mPaint.setStrokeCap Paint.Cap.ROUND paint.setStrokeWidth 5 canvas.drawPaint paint paint.setColor Color.WHITE canvas.drawRect point1.x 25..
Android Canvas.drawText http://stackoverflow.com/questions/2655402/android-canvas-drawtext Paint paint.setColor Color.WHITE paint.setStyle Style.FILL canvas.drawPaint paint paint.setColor android.R.color.black paint.setTextSize.. the background what am I doing wrong If I remove the canvas.drawPaint paint and paint.setColor android.R.color.black you can see the.. Paint paint.setColor Color.WHITE paint.setStyle Style.FILL canvas.drawPaint paint paint.setColor Color.BLACK paint.setTextSize 20 canvas.drawText..
How to fill a Path in Android with a linear gradient? http://stackoverflow.com/questions/2836098/how-to-fill-a-path-in-android-with-a-linear-gradient
Clearing canvas with Canvas.drawColor() http://stackoverflow.com/questions/4650755/clearing-canvas-with-canvas-drawcolor Paint paint.setXfermode new PorterDuffXfermode Mode.CLEAR canvas.drawPaint paint paint.setXfermode new PorterDuffXfermode Mode.SRC start..
Gradients and shadows on buttons http://stackoverflow.com/questions/4891711/gradients-and-shadows-on-buttons bmResult.getHeight 2 0xFF284560 0xFF284060 TileMode.MIRROR canvas.drawPaint paint paint.setShader new LinearGradient 0 0 0 bmResult.getHeight..
How to make view resizable on touch event http://stackoverflow.com/questions/10188478/how-to-make-view-resizable-on-touch-event Paint.Style.FILL paint.setStrokeJoin Paint.Join.ROUND mPaint.setStrokeCap Paint.Cap.ROUND paint.setStrokeWidth 5 canvas.drawPaint paint paint.setColor Color.WHITE canvas.drawRect point1.x 25 point2.x point3.x 25 point4.x paint BitmapDrawable mBitmap..
Android Canvas.drawText http://stackoverflow.com/questions/2655402/android-canvas-drawtext the onDraw Canvas canvas method. My code is Paint paint new Paint paint.setColor Color.WHITE paint.setStyle Style.FILL canvas.drawPaint paint paint.setColor android.R.color.black paint.setTextSize 20 canvas.drawText Some Text 10 25 paint The problem is the.. Text 10 25 paint The problem is the text doesn't show through the background what am I doing wrong If I remove the canvas.drawPaint paint and paint.setColor android.R.color.black you can see the text on the screen..... android canvas drawtext share.. same as Color.BLACK. Changed the code to Paint paint new Paint paint.setColor Color.WHITE paint.setStyle Style.FILL canvas.drawPaint paint paint.setColor Color.BLACK paint.setTextSize 20 canvas.drawText Some Text 10 25 paint and it all works fine now ..
How to fill a Path in Android with a linear gradient? http://stackoverflow.com/questions/2836098/how-to-fill-a-path-in-android-with-a-linear-gradient
Clearing canvas with Canvas.drawColor() http://stackoverflow.com/questions/4650755/clearing-canvas-with-canvas-drawcolor
Gradients and shadows on buttons http://stackoverflow.com/questions/4891711/gradients-and-shadows-on-buttons paint new Paint paint.setShader new LinearGradient 0 0 0 bmResult.getHeight 2 0xFF284560 0xFF284060 TileMode.MIRROR canvas.drawPaint paint paint.setShader new LinearGradient 0 0 0 bmResult.getHeight 2 0x55FFFFFF 0x22FFFFFF TileMode.CLAMP paint.setMaskFilter..
|