ResourceBuilders

Added in 1.0.0
Deprecated in 1.2.0

class ResourceBuilders


Builders for the resources for a layout.

Summary

Nested types

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

Builder for AndroidImageResourceByResId

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

The resources for a layout.

Builder for Resources

Constants

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

const Int

An undefined image format.

Constants

IMAGE_FORMAT_RGB_565

Added in 1.0.0
Deprecated in 1.2.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
Deprecated in 1.2.0
const val IMAGE_FORMAT_UNDEFINED = 0: Int

An undefined image format.