androidcolor-codes

How to make any html color code semi transparent [Android]


I have one Android application were i have one shape and in that i have one solid tag.

I want to make this shape 20% transparent with above color code.
How should i do that?


Solution

  • If the color is represented in hexadecimal, like #424242, then adding two more digits in front of this "number" will represent the transparency, ex: #66424242. (66 in this example)
    You can play a bit until arrive at desired effect.