Sergey Shustikov Sergey Shustikov - 5 months ago 88
Android Question

Android Material Design Divider Color

Following color UI application of Material design i want to use an divider for the white theme. Guide
told me
that divider have 12% of white color, but how i can define 12% of white color divider in xml layout file?

enter image description here


12% refers to the alpha channel. The max alpa is 255, and 12% of 255 is 31. Hex of 31 is 1F. So the color is #1FFFFFFF