Want create site? Find Free WordPress Themes and plugins.

Hello Everyone! In this post, I want to share how to set transparent background of a control on Android?? If you want to add 20% or 30% transparency, you should pre-pend two more characters to the hexadecimal code, like CC. Like:  android:background="#CCFF0088" in XML, where CC is the alpha value, FF is the red factor, 00 is the green factor, and 88 is the blue factor. Some opacity code:

Another Example:  Use the below code for black:

Now if you want to use opacity then you can use the below code:

Did you find apk for android? You can find new Free Android Games and apps.

About the author

Selim Ahmed

Selim Ahmed

I’m Selim Ahmed, a tech savvy who loves to learn new technology everyday. Innovation, research and development is my daily activities. I can quickly adapt myself with new technology with learning and experiencing. I love to work a place where I can learn, innovate and develop new things.

Leave a Comment