I used the following code to draw text on a view canvas:
Paint paint = new Paint(); paint.setTextSize(14); paint.setColor(0xFFFFFFFF); paint.setAntiAlias(true); @Override public void onDraw(Canvas canvas){ super.onDraw(canvas); canvas.drawText("abcdef", 0, 0, paint); } Question:
The text is displayed in a dark grey color instead of white color (0xFFFFFFFF). Why so?
I tried to use setShadowLayer() or paint.setAntiAlias(false) in order to solve the problem, unfortunately without success.
