I am trying to achieve something like this
where the text and background colors are similar. How do I get the corresponding background (probably 50% transparent of chosen color) color for a chip in Android?
Simply take the color you use for the text and set alpha
to 0.5f
.