ColorDrawableKt

public final class ColorDrawableKt


Summary

Public methods

static final @NonNull ColorDrawable

Create a ColorDrawable from this color value.

static final @RequiresApi(value = "26") @NonNull ColorDrawable

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

Public methods

ColorDrawableKt.toDrawable

@NonNull
public static final ColorDrawable ColorDrawableKt.toDrawable(@ColorInt int receiver)

Create a ColorDrawable from this color value.

ColorDrawableKt.toDrawable

@RequiresApi(value = "26")
@NonNull
public static final @RequiresApi(value = "26") ColorDrawable ColorDrawableKt.toDrawable(@NonNull Color receiver)

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