Skip to content

Instantly share code, notes, and snippets.

@bdiegel
Last active October 28, 2015 14:30
Show Gist options
  • Save bdiegel/40fb154913d65af55d15 to your computer and use it in GitHub Desktop.
Save bdiegel/40fb154913d65af55d15 to your computer and use it in GitHub Desktop.
Android Color Transparency

Set transparent color in android

Set color to #AARRGGBB where AA is the alpha channel.

  • #00000000 - full transparency
  • #80FFFFFF - 50% white
  • #CCFFFFFF - 80% white

Alpha channel values:

100% — FF
95% — F2
90% — E6
85% — D9
80% — CC
75% — BF
70% — B3
65% — A6
60% — 99
55% — 8C
50% — 80
45% — 73
40% — 66
35% — 59
30% — 4D
25% — 40
20% — 33
15% — 26
10% — 1A
05% — 0D
00% — 00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment