how can I find the color created with bitmask? For example, what is the color equivalent of this expression?
color = -16777216
You can easily do this with Integer.toHexString.
val bitmaskColor = -16777216
Log.e("HEX",Integer.toHexString(bitmaskColor)) // ff000000