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

前端 未结 5 1470
广开言路
广开言路 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:34

    8-digit hex is an ARGB color. It is the same as usual RGB, but provides an extra alpha channel.

    #RRGGBB in RGB is the same as #00RRGGBB in ARGB. Also take a look at Color.argb.

提交回复
热议问题