{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ColorResourcesKt

public final class ColorResourcesKt


Summary

Public methods

static final @NonNull Color

Load a color resource.

Public methods

colorResource

@Composable
public static final @NonNull Color colorResource(@ColorRes int id)

Load a color resource.

Parameters
@ColorRes int id

the resource identifier

Returns
@NonNull Color

the color associated with the resource