ResourceBuilders


public final class ResourceBuilders


Builders for the resources for a layout.

Summary

Nested types

A non-seekable animated image resource that maps to an Android drawable by resource ID.

Builder for AndroidAnimatedImageResourceByResId

@RequiresSchemaVersion(major = 1, minor = 0)
public final class ResourceBuilders.AndroidImageResourceByResId

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

Builder for AndroidImageResourceByResId

A seekable animated image resource that maps to an Android drawable by resource ID.

Builder for AndroidSeekableAnimatedImageResourceByResId

@RequiresSchemaVersion(major = 1, minor = 0)
public final class ResourceBuilders.ImageResource

An image resource, which can be used by layouts.

Builder for ImageResource

@RequiresSchemaVersion(major = 1, minor = 0)
public final class ResourceBuilders.InlineImageResource

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

Builder for InlineImageResource

@RequiresSchemaVersion(major = 1, minor = 0)
public final class ResourceBuilders.Resources

The resources for a layout.

Builder for Resources

Constants

static final int
@RequiresSchemaVersion(major = 1, minor = 200)
ANIMATED_IMAGE_FORMAT_AVD = 1

Android AnimatedVectorDrawable.

static final int

An undefined image format.

static final int
@RequiresSchemaVersion(major = 1, minor = 200)
IMAGE_FORMAT_ARGB_8888 = 2

An image format where each pixel is stored on 4 bytes.

static final int
@RequiresSchemaVersion(major = 1, minor = 0)
IMAGE_FORMAT_RGB_565 = 1

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 int
@RequiresSchemaVersion(major = 1, minor = 0)
IMAGE_FORMAT_UNDEFINED = 0

An undefined image format.

Constants

ANIMATED_IMAGE_FORMAT_AVD

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public static final int ANIMATED_IMAGE_FORMAT_AVD = 1

Android AnimatedVectorDrawable.

ANIMATED_IMAGE_FORMAT_UNDEFINED

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public static final int ANIMATED_IMAGE_FORMAT_UNDEFINED = 0

An undefined image format.

IMAGE_FORMAT_ARGB_8888

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public static final int IMAGE_FORMAT_ARGB_8888 = 2

An image format where each pixel is stored on 4 bytes. RGB and alpha (for translucency) is stored with 8 bits of precision.

IMAGE_FORMAT_RGB_565

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public static final int IMAGE_FORMAT_RGB_565 = 1

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

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public static final int IMAGE_FORMAT_UNDEFINED = 0

An undefined image format.