Hex Colors in Android are some times 8 digits. How? What is the difference between #FFFFFF and #FFFFFF00

前端 未结 5 1485
广开言路
广开言路 2020-12-05 03:31

I sometimes have seen in examples where the coloring in Android is done as #FF191919. I mean a 8 digit hex number . But it should be only a 6 digit number. How are they rela

5条回答
  •  余生分开走
    2020-12-05 04:22

    the 8 digit color define with alpa level

    let extract all we define hex color as 6 value pair of rgb 2 digit per

    1st 2 digit for red, 2nd 2 digit for green and 3rd 2 digit for blue now if you want to set the alpha level of that then it define with the 8 digit as ARGB so, now 1st 2 digit value was define for the alpha and rest are for the RGB

提交回复
热议问题