ResourcesScope

interface ResourcesScope

An extension for Hikage view scope to provide resources.

Inheritors

Functions

Link copied to clipboard
abstract fun bitmapResource(@DrawableRes resId: Int): Bitmap

Get the Bitmap from resId.

Link copied to clipboard
abstract fun booleanResource(@BoolRes resId: Int): Boolean

Get the boolean from resId.

Link copied to clipboard
abstract fun colorResource(@ColorRes resId: Int): Int

Get the color from resId.

Link copied to clipboard
abstract fun dimenPixelOffsetResource(@DimenRes resId: Int): Int

Get the dimension pixel offset from resId.

Link copied to clipboard
abstract fun dimenPixelSizeResource(@DimenRes resId: Int): Int

Get the dimension pixel size from resId.

Link copied to clipboard
abstract fun dimenResource(@DimenRes resId: Int): Float

Get the dimension from resId.

Link copied to clipboard
abstract fun drawableResource(@DrawableRes resId: Int): Drawable

Get the Drawable from resId.

Link copied to clipboard
abstract fun fontResource(@FontRes resId: Int): Typeface?

Get the font from resId.

Link copied to clipboard
abstract fun fractionResource(@FractionRes resId: Int, base: Int, pbase: Int): Float

Get the fraction from resId.

Link copied to clipboard
abstract fun integerArrayResource(@ArrayRes resId: Int): IntArray

Get the integer array from resId.

Link copied to clipboard
abstract fun integerResource(@IntegerRes resId: Int): Int

Get the integer from resId.

Link copied to clipboard
abstract fun pluralStringResource(@PluralsRes resId: Int, quantity: Int, vararg formatArgs: Any): String

Get the plural string from resId.

Link copied to clipboard
abstract fun pluralTextResource(@PluralsRes resId: Int, quantity: Int): CharSequence

Get the plural text from resId.

Link copied to clipboard

Get the ColorStateList from resId.

Link copied to clipboard
abstract fun stringArrayResource(@ArrayRes resId: Int): Array<String>

Get the string array from resId.

Link copied to clipboard
abstract fun stringResource(@StringRes resId: Int, vararg formatArgs: Any): String

Get the string from resId.

Link copied to clipboard
abstract fun textResource(@StringRes resId: Int): CharSequence

Get the text from resId.