ResourceBuilders


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

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)
class ResourceBuilders.ImageResource

An image resource, which can be used by layouts.

Builder for ImageResource

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)
class ResourceBuilders.Resources

The resources for a layout.

Builder for Resources

Constants

const Int
@RequiresSchemaVersion(major = 1, minor = 200)
ANIMATED_IMAGE_FORMAT_AVD = 1

Android AnimatedVectorDrawable.

const Int

An undefined image format.

const Int
@RequiresSchemaVersion(major = 1, minor = 200)
IMAGE_FORMAT_ARGB_8888 = 2

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

const 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.

const 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)
const val ANIMATED_IMAGE_FORMAT_AVD = 1: Int

Android AnimatedVectorDrawable.

ANIMATED_IMAGE_FORMAT_UNDEFINED

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
const val ANIMATED_IMAGE_FORMAT_UNDEFINED = 0: Int

An undefined image format.

IMAGE_FORMAT_ARGB_8888

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
const val IMAGE_FORMAT_ARGB_8888 = 2: Int

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)
const val IMAGE_FORMAT_RGB_565 = 1: 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.

IMAGE_FORMAT_UNDEFINED

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
const val IMAGE_FORMAT_UNDEFINED = 0: Int

An undefined image format.