ColorDrawableKt

Added in 1.1.0

public final class ColorDrawableKt


Summary

Public methods

static final @NonNull ColorDrawable
@RequiresApi(value = 26)
toDrawable(@NonNull Color receiver)

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

static final @NonNull ColorDrawable
toDrawable(@ColorInt int receiver)

Create a ColorDrawable from this color value.

Public methods

toDrawable

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

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

toDrawable

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

Create a ColorDrawable from this color value.