Monday, September 16, 2013

Android Transparency in percentage



use a color with alpha value like this #33------ and set it as background of your editText using the xml attribute android:background=" "
  1. 0% (transparent) -> #00 in hex
  2. 20% -> #33
  3. 50% -> #80
  4. 75% -> #C0
  5. 100% (opaque) -> #FF
255 * 0.2 = 51 ==> in hex 33

No comments:

Post a Comment