Skip to content

SourceSets

FontIconDrawable

Android

kotlin
class FontIconDrawable : Drawable

A drawable that draws an icon using a icon font. This effectively just calls Canvas.drawFontIcon on the Drawable canvas.

Constructors

FontIconDrawable

Android

kotlin
constructor(iconName: String, typeface: Typeface, fontFeatureSettings: String?, tint: Color, density: Density, size: Dp = DEFAULT_ICON_SIZE_DP.dp)

A drawable that draws the icon iconName using the typeface. The icon will be size × size dp, and will be tinted with tint.

kotlin
constructor(icon: Char, typeface: Typeface, fontFeatureSettings: String?, tint: Color, density: Density, size: Dp = DEFAULT_ICON_SIZE_DP.dp)

A drawable that draws the icon using the typeface. The icon will be size × size dp, and will be tinted with tint.

kotlin
constructor(iconName: String, iconFont: StaticIconFont, tint: Color, context: Context, density: Density, size: Dp = DEFAULT_ICON_SIZE_DP.dp, weight: FontWeight = FontWeight(DEFAULT_ICON_WEIGHT))

A drawable that draws the icon iconName using the iconFont. The icon will be size × size dp, and will be tinted with tint.

kotlin
constructor(icon: Char, iconFont: StaticIconFont, tint: Color, context: Context, density: Density, size: Dp = DEFAULT_ICON_SIZE_DP.dp, weight: FontWeight = FontWeight(DEFAULT_ICON_WEIGHT))

A drawable that draws the icon using the iconFont. The icon will be size × size dp, and will be tinted with tint.

kotlin
constructor(iconName: String, typeface: Typeface, fontFeatureSettings: String?, fontVariationSettings: FontVariation.Settings, tint: Color, density: Density, size: Dp = DEFAULT_ICON_SIZE_DP.dp, weight: FontWeight = FontWeight(DEFAULT_ICON_WEIGHT))

A drawable that draws the icon iconName using the variable typeface. The icon will be size × size dp, and will be tinted with tint.

kotlin
constructor(icon: Char, typeface: Typeface, fontFeatureSettings: String?, fontVariationSettings: FontVariation.Settings, tint: Color, density: Density, size: Dp = DEFAULT_ICON_SIZE_DP.dp, weight: FontWeight = FontWeight(DEFAULT_ICON_WEIGHT))

A drawable that draws the icon using the variable typeface. The icon will be size × size dp, and will be tinted with tint.

kotlin
constructor(iconName: String, iconFont: VariableIconFont, tint: Color, context: Context, density: Density, size: Dp = DEFAULT_ICON_SIZE_DP.dp, weight: FontWeight = FontWeight(DEFAULT_ICON_WEIGHT))

A drawable that draws the icon iconName using the variable iconFont. The icon will be size × size dp, and will be tinted with tint.

kotlin
constructor(icon: Char, iconFont: VariableIconFont, tint: Color, context: Context, density: Density, size: Dp = DEFAULT_ICON_SIZE_DP.dp, weight: FontWeight = FontWeight(DEFAULT_ICON_WEIGHT))

A drawable that draws the icon using the variable iconFont. The icon will be size × size dp, and will be tinted with tint.

Functions

Name

Summary

applyTheme

Android

kotlin
open fun applyTheme(p0: Resources.Theme)

canApplyTheme

Android

kotlin
open fun canApplyTheme(): Boolean

clearColorFilter

Android

kotlin
open fun clearColorFilter()

copyBounds

Android

kotlin
fun copyBounds(): Rect
kotlin
fun copyBounds(p0: Rect)

getAlpha

Android

kotlin
open fun getAlpha(): Int

getBounds

Android

kotlin
fun getBounds(): Rect

getCallback

Android

kotlin
open fun getCallback(): Drawable.Callback?

getChangingConfigurations

Android

kotlin
open fun getChangingConfigurations(): Int

getColorFilter

Android

kotlin
open fun getColorFilter(): ColorFilter?

getConstantState

Android

getCurrent

Android

kotlin
open fun getCurrent(): Drawable

getDirtyBounds

Android

kotlin
open fun getDirtyBounds(): Rect

getHotspotBounds

Android

kotlin
open fun getHotspotBounds(p0: Rect)

getLayoutDirection

Android

kotlin
open fun getLayoutDirection(): Int

getLevel

Android

kotlin
fun getLevel(): Int

getMinimumHeight

Android

kotlin
open fun getMinimumHeight(): Int

getMinimumWidth

Android

kotlin
open fun getMinimumWidth(): Int

getOpticalInsets

Android

kotlin
open fun getOpticalInsets(): Insets

getOutline

Android

kotlin
open fun getOutline(p0: Outline)

getPadding

Android

kotlin
open fun getPadding(p0: Rect): Boolean

getState

Android

kotlin
open fun getState(): IntArray

getTransparentRegion

Android

kotlin
open fun getTransparentRegion(): Region?

hasFocusStateSpecified

Android

inflate

Android

kotlin
open fun inflate(p0: Resources, p1: XmlPullParser, p2: AttributeSet)
kotlin
open fun inflate(p0: Resources, p1: XmlPullParser, p2: AttributeSet, p3: Resources.Theme?)

invalidateSelf

Android

kotlin
open fun invalidateSelf()

isAutoMirrored

Android

kotlin
open fun isAutoMirrored(): Boolean

isFilterBitmap

Android

kotlin
open fun isFilterBitmap(): Boolean

isProjected

Android

kotlin
open fun isProjected(): Boolean

isStateful

Android

kotlin
open fun isStateful(): Boolean

isVisible

Android

kotlin
fun isVisible(): Boolean

jumpToCurrentState

Android

kotlin
open fun jumpToCurrentState()

mutate

Android

kotlin
open fun mutate(): Drawable

onLayoutDirectionChanged

Android

kotlin
open fun onLayoutDirectionChanged(p0: Int): Boolean

scheduleSelf

Android

kotlin
open fun scheduleSelf(p0: Runnable, p1: Long)

setAutoMirrored

Android

kotlin
open fun setAutoMirrored(p0: Boolean)

setBounds

Android

kotlin
open fun setBounds(p0: Rect)
kotlin
open fun setBounds(p0: Int, p1: Int, p2: Int, p3: Int)

setCallback

Android

setChangingConfigurations

Android

kotlin
open fun setChangingConfigurations(p0: Int)

setColorFilter

Android

kotlin
open fun setColorFilter(p0: Int, p1: PorterDuff.Mode)

setDither

Android

kotlin
open fun setDither(p0: Boolean)

setFilterBitmap

Android

kotlin
open fun setFilterBitmap(p0: Boolean)

setHotspot

Android

kotlin
open fun setHotspot(p0: Float, p1: Float)

setHotspotBounds

Android

kotlin
open fun setHotspotBounds(p0: Int, p1: Int, p2: Int, p3: Int)

setLayoutDirection

Android

setLevel

Android

kotlin
fun setLevel(p0: Int): Boolean

setState

Android

kotlin
open fun setState(p0: IntArray): Boolean

setTint

Android

kotlin
open fun setTint(p0: Int)

setTintBlendMode

Android

kotlin
open fun setTintBlendMode(p0: BlendMode?)

setTintList

Android

kotlin
open fun setTintList(p0: ColorStateList?)

setTintMode

Android

kotlin
open fun setTintMode(p0: PorterDuff.Mode?)

setVisible

Android

kotlin
open fun setVisible(p0: Boolean, p1: Boolean): Boolean

unscheduleSelf

Android

kotlin
open fun unscheduleSelf(p0: Runnable)