If you want to use partial transparency, this would help you while setting your color codes.
2 hex characters can be appended to any hex color code. The first 2 characters in an 8-digit hex color code represents its opacity in Android.
The 2 hex characters can range from 00 to FF. For example-
- Normal opaque black hex- "#000000"
- Fully transparent black- "#00000000"
- Fully opaque black- "#FF000000"
- 50% transparent black- "#80000000"
This way you can change any color to any level of transparency.
Use this to find the Hex prefix from a percentage-
Divide the % by 100 and multiply by 255 to get the decimal value. Convert the decimal to hex here
eg. for 50%, 50/100 * 255 = 128. Using the link we get hex value 80.
Source- http://zaman91.wordpress.com/2010/03/22/android-how-to-create-transparent-or-opeque-background/