ResourceBuilders.AndroidImageResourceByResId

public final class ResourceBuilders.AndroidImageResourceByResId


An image resource which maps to an Android drawable by resource ID.

Summary

Public methods

static @NonNull ResourceBuilders.AndroidImageResourceByResId.Builder

Returns a new Builder.

@DrawableRes @NonNull int

Gets the Android resource ID of this image.

Public methods

getResourceId

@DrawableRes
@NonNull
public @DrawableRes int getResourceId()

Gets the Android resource ID of this image. This must refer to a drawable under R.drawable. Intended for testing purposes only.