ResourceBuilders

public final class ResourceBuilders


Builders for the resources for a layout.

Summary

Nested types

ResourceBuilders.AndroidImageResourceByResId

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

ResourceBuilders.AndroidImageResourceByResId.Builder

Builder for AndroidImageResourceByResId

ResourceBuilders.ImageResource

An image resource, which can be used by layouts.

ResourceBuilders.ImageResource.Builder

Builder for ImageResource

ResourceBuilders.InlineImageResource

An image resource whose data is fully inlined, with no dependency on a system or app resource.

ResourceBuilders.InlineImageResource.Builder

Builder for InlineImageResource

ResourceBuilders.Resources

The resources for a layout.

ResourceBuilders.Resources.Builder

Builder for Resources

Constants

static final @NonNull int

An image format where each pixel is stored on 2 bytes, with red using 5 bits, green using 6 bits and blue using 5 bits of precision.

static final @NonNull int

An undefined image format.

Constants

IMAGE_FORMAT_RGB_565

@NonNull
public static final @NonNull int IMAGE_FORMAT_RGB_565

An image format where each pixel is stored on 2 bytes, with red using 5 bits, green using 6 bits and blue using 5 bits of precision.

IMAGE_FORMAT_UNDEFINED

@NonNull
public static final @NonNull int IMAGE_FORMAT_UNDEFINED

An undefined image format.