ProBuilder Advanced
July 16, 2017

Android Hexadecimal Color Transparency Chart

I was working on a daily quote app recently and was tasked with figuring out how to achieve transparency on a TextView with a background color.  In most situations there would be a simple transparency or opacity attribute that I could set to my desired setting.  This is not the case when developing in Android Studio.  Thanks to some clever searching I stumbled upon a post on Stack Overflow that contained all the information I needed:

Transparency %  Code
 100% 00
 90% 1A
 80% 33
 70% 4D
 60% 66
 50% 80
 40% 99
 30% B3
 20% CC
 10% E6
0% FF

Awesome!  Now all I had to do was prepend the given code to my color definition.  I ended up with the following color definition:

<color name="colorBlackSemiTrans">#CC000000</color>

Now you can simply set your TextView background value like so:

android:background="@color/colorBlackSemiTrans"

 

Happy developing!

Mike Wojcik
Mike Wojcik
WordPress Expert, Web & Game Developer, Superhero & Dad. Mike has been involved in software and web development for over a decade and has experience that covers a wide range of different areas ranging from server deployment and maintenance to project management to full scale website development from scratch.

Leave a Reply

145 Comments on "Android Hexadecimal Color Transparency Chart"

Notify of
Sort by:   newest | oldest | most voted
trackback

Tadalafil 20 mg http://cialisvipsale.com/

Wonderful posts. Kudos!

trackback

Viagra online http://viagravipsale.com/

With thanks, Plenty of knowledge.

trackback

Cialis purchasing http://cialisyoues.com/

Wow a good deal of awesome tips!

trackback

How does viagra work http://rldta.com/

Amazing material. Appreciate it.

trackback

Cialis vs viagra http://kawanboni.com/

Very good posts. Thank you.

trackback

Cialis generika http://cialisvonline.com/

Kudos, I enjoy it.

trackback

Viagra 20 mg best price http://viagravonline.com/

Wonderful content. Cheers.

trackback

generic cialis http://cialisvus.com/

Beneficial advice. Thanks a lot.

trackback

cialis kaufen http://cialisbuys.com/

Information certainly taken..

trackback

cialis 20mg http://cialisonl.com/

You revealed this effectively.

trackback

low cost cialis 20mg http://cialisees.com/

With thanks, Plenty of knowledge!

trackback

write essay for me http://gsgfsdgfdhjhjhj.com/

Kudos! An abundance of info!

trackback

cialis alternative http://cialisky.com/

Whoa a lot of terrific information!

trackback

generic for cialis http://cialisiv.com/

Thanks! A good amount of forum posts!

trackback

generic for cialis http://cialisonla.com/

Thanks, Good stuff!

trackback

Google

We like to honor many other online web pages on the internet, even if they aren’t linked to us, by linking to them. Underneath are some webpages really worth checking out.

trackback

Parfum vergelijken

[…]Wonderful story, reckoned we could combine a handful of unrelated data, nonetheless genuinely really worth taking a look, whoa did 1 study about Mid East has got additional problerms as well […]

trackback

کلیپ سکسی

[…]Every as soon as in a when we decide on blogs that we read. Listed beneath are the newest web pages that we opt for […]

trackback

W88 Thailand

[…]always a major fan of linking to bloggers that I appreciate but don’t get quite a bit of link really like from[…]

trackback

erotics

[…]The details talked about inside the write-up are a number of the ideal offered […]

trackback

derivative in mathcad

[…]Here are a few of the sites we suggest for our visitors[…]

trackback

youtube downloader mp3

[…]very few websites that come about to be detailed below, from our point of view are undoubtedly properly worth checking out[…]

trackback

ww88

[…]here are some hyperlinks to sites that we link to due to the fact we feel they’re worth visiting[…]

trackback

شهوانی

[…]Here are several of the web pages we suggest for our visitors[…]

trackback

wave soldering machine manufacturer

[…]usually posts some very intriguing stuff like this. If you’re new to this site[…]

trackback

sex toys

[…]Every after in a even though we select blogs that we read. Listed beneath would be the latest web sites that we decide on […]

trackback

male masturbators

[…]the time to study or pay a visit to the material or web-sites we’ve linked to beneath the[…]

trackback

masturbators

[…]check below, are some entirely unrelated internet websites to ours, nonetheless, they’re most trustworthy sources that we use[…]

trackback

Reflow oven manufacturer

[…]check beneath, are some absolutely unrelated sites to ours, however, they’re most trustworthy sources that we use[…]

trackback

Custom USB Flash Drive

[…]always a massive fan of linking to bloggers that I appreciate but really don’t get lots of link really like from[…]

trackback

naluch

[…]usually posts some pretty exciting stuff like this. If you are new to this site[…]

trackback

free download for windows pc

[…]check beneath, are some entirely unrelated web sites to ours, nonetheless, they may be most trustworthy sources that we use[…]

trackback

free software download for windows 10

[…]although internet websites we backlink to below are considerably not connected to ours, we feel they are basically worth a go as a result of, so have a look[…]

trackback

2nd hand laboratory equipment

[…]Here are a few of the websites we advise for our visitors[…]

trackback

pc games free download full version for windows xp

[…]please check out the web-sites we comply with, such as this 1, because it represents our picks in the web[…]

trackback

Boys Games free download for pc

[…]usually posts some incredibly fascinating stuff like this. If you are new to this site[…]

trackback

Amazon accounts for sale

[…]that may be the finish of this write-up. Here you will come across some web pages that we feel you’ll value, just click the hyperlinks over[…]

trackback

USB Flash Drive Manufacturer

[…]usually posts some very exciting stuff like this. If you’re new to this site[…]

trackback

smt reflow oven

[…]Here are several of the web pages we advocate for our visitors[…]

trackback

leaflet delivery

[…]we came across a cool site which you might delight in. Take a appear in the event you want[…]

trackback

Moving company in Woodbridge VA

[…]please check out the web sites we stick to, which includes this a single, because it represents our picks from the web[…]

trackback

Dave’s Original Mild Chili Recipe

[…]below you will uncover the link to some websites that we consider you ought to visit[…]

trackback

RSMSSB Result 2018

[…]we prefer to honor many other world-wide-web internet sites on the net, even when they aren’t linked to us, by linking to them. Beneath are some webpages worth checking out[…]

trackback

trusted dumps seller

[…]one of our guests a short while ago advised the following website[…]

trackback

lunnyj kalendar strizhek na nojabr

[…]usually posts some extremely fascinating stuff like this. If you are new to this site[…]

trackback

web design tool

[…]just beneath, are quite a few absolutely not related sites to ours, on the other hand, they may be surely really worth going over[…]

trackback

ikea assembly service

[…]Every once in a although we pick blogs that we study. Listed below would be the newest web sites that we choose […]

trackback

how to make her wet using sex toys

[…]Every as soon as inside a although we pick blogs that we study. Listed beneath would be the most up-to-date web pages that we pick […]

trackback

situs judi

[…]we prefer to honor a lot of other online web-sites around the net, even though they aren’t linked to us, by linking to them. Below are some webpages really worth checking out[…]

trackback

ستلايت الكويت

[…]Every once inside a whilst we pick out blogs that we study. Listed below are the latest sites that we select […]

wpDiscuz