Sergey Shustikov Sergey Shustikov - 1 year ago 278
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

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download