Package-level declarations

Functions

Link copied to clipboard

Returns the boolean value that the given attrRes refers to.

Link copied to clipboard

Returns the color array value that the given attrRes refers to.

Link copied to clipboard

Returns the color value that the given attrRes refers to.

Link copied to clipboard

Returns a pixel representation of the dimen value that the given attrRes refers to.

Link copied to clipboard

Returns a drawable that the given attrRes refers to.

Link copied to clipboard

Returns the float value that the given attrRes refers to.

Link copied to clipboard

Returns the font that the given attrRes refers to.

Link copied to clipboard

Returns the integer value that the given attrRes refers to.

Link copied to clipboard

Return a resolved resource id that the given attrRes refers to.

Link copied to clipboard

Returns the string array that the given attrRes refers to.

Link copied to clipboard

Returns the string that the given attrRes refers to.

Link copied to clipboard
fun Context.readTextAsset(assetFilePath: String): String

Returns the string contents of an Android text asset based on the given assetFilePath.

Link copied to clipboard
fun <R> Context.useObtainedStyledAttributesByAttr(@AttrRes attrRes: Int, attrs: IntArray, useBlock: (TypedArray) -> R): R

Obtains a TypedArray holding the values defined by attrRes which are listed in attrs and calls the useBlock with this array. Note: The obtained TypedArray is automatically recycled.