core-ktx / androidx.graphics.drawable / android.graphics.Color

Extensions for android.graphics.Color

toDrawable

fun Color.toDrawable(): ColorDrawable

Create a ColorDrawable from this Color (via Color.toArgb).