Color get hex
import android.graphics.Color
fun main() {
val colorInt = Color.RED
val colorHex = Integer.toHexString(colorInt)
val formattedColorHex = "#${colorHex.substring(2)}"
println("Color Hex: $formattedColorHex")
}
import android.graphics.Color
fun main() {
val colorInt = Color.RED
val colorHex = Integer.toHexString(colorInt)
val formattedColorHex = "#${colorHex.substring(2)}"
println("Color Hex: $formattedColorHex")
}