Android - How to set color value to TRANSPARENT
just used android color string
mPaint.setColor(getResources().getColor(android.R.color.transparent));
Suppose your preferred color is red #FF0000
Adding 00 in the beginning will make it 100% transparent and adding FF will make it 100% solid.
So, 100% transparent color is: #00ff0000
and 100% solid color is: #ffff0000
And any value in between 00
to ff
can be used to adjust the transparency.