Color value format

Source: Internet
Author: User

In fact, I have never encountered this problem in my previous development, but when I was looking for a job recently, there was such a problem in the pen exam of a company.

Color value # What does FF in ffaabbcc mean?

I admit that I have never encountered such a problem before, so I am blank in that blank question. Then I went back to the Internet and asked everyone in the Post Bar.

So I will share it with you here. There are actually two types of color values, one is argb, and the other is our commonly used RGB. What I have always been confused about is that I have always known the second one. In the expression of the first color value, the first a indicates transparency. FF is a completely opaque expression.

Translucent <relativelayout Android: Background = "# c0000000"…>
Completely opaque <relativelayout Android: Background = "# ff000000 ″... />
Completely Transparent <relativelayout Android: Background = "#00000000 ″... />

 

Reference: http://hxsdit.com/1637

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.