I plan to extract the color of an album image and it works fine, but the black part never returns the correct color value
Set the picture code as follows:
val bitmap = BitmapFactory.decodeFile(path)
if (bitmap != null) {
val drawable: Drawable = BitmapDrawable(resources, bitmap)
colorPickerView.setPaletteDrawable(drawable)
}
I plan to extract the color of an album image and it works fine, but the black part never returns the correct color value Set the picture code as follows: val bitmap = BitmapFactory.decodeFile(path) if (bitmap != null) { val drawable: Drawable = BitmapDrawable(resources, bitmap) colorPickerView.setPaletteDrawable(drawable) }