How can I add transparency value to a palette's swatch? Like I am adding the color(swatch.getRGB()) to a linear layout, It shows solid color. And I don't want to use alpha as it will make other items in layout transparent too.
My code snippet:
Palette palette = Palette.from(myBitmap).generate();
Palette.Swatch swatch1 = palette.getDarkVibrantSwatch();
int color = swatch1.getRgb();
thatLayout.setBackgroundColor(color)
I haven't tested this but something like this should work