FontIconDrawable
A drawable that draws the icon iconName using the typeface. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon name (icon aliases/font ligatures are supported)
the Paint used to draw this icon
the font feature settings, written in a CSS syntax
the tint to be applied to this icon
the size of the icon, by default 24 dp
A drawable that draws the icon using the typeface. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon Unicode character
the Paint used to draw this icon
the font feature settings, written in a CSS syntax
the tint to be applied to this icon
the size of the icon, by default 24 dp
A drawable that draws the icon iconName using the iconFont. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon name (icon aliases/font ligatures are supported)
the StaticIconFont used to draw this icon
the tint to be applied to this icon
the Context used to access some typefaces
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal
A drawable that draws the icon using the iconFont. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon Unicode character
the StaticIconFont used to draw this icon
the tint to be applied to this icon
the Context used to access some typefaces
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal
A drawable that draws the icon iconName using the variable typeface. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon name (icon aliases/font ligatures are supported)
the Paint used to draw this icon
the font feature settings, written in a CSS syntax
the font variation settings, should not include the optical size ('opsz') or the weight ('wght')
the tint to be applied to this icon
the Density used to compute icon dimensions and variation values
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal
A drawable that draws the icon using the variable typeface. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon Unicode character
the Paint used to draw this icon
the font feature settings, written in a CSS syntax
the font variation settings, should not include the optical size ('opsz') or the weight ('wght')
the tint to be applied to this icon
the Density used to compute icon dimensions and variation values
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal
A drawable that draws the icon iconName using the variable iconFont. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon name (icon aliases/font ligatures are supported)
the VariableIconFont used to draw this icon
the tint to be applied to this icon
the Context used to access some typefaces
the Density used to compute icon dimensions and variation values
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal
A drawable that draws the icon using the variable iconFont. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon Unicode character
the VariableIconFont used to draw this icon
the tint to be applied to this icon
the Context used to access some typefaces
the Density used to compute icon dimensions and variation values
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal
Deprecated
This constructor will be removed in a future release.
Replace with
FontIconDrawable(iconName, iconFont, tint, context, density, size, weight)
A drawable that draws the icon iconName using the iconFont. The icon will be size × size dp, and will be tinted with tint. If iconFont is a variable font, weight will applied as a variation setting, or else the font with the nearest weight will be picked.
Parameters
the icon name (can be a single character or a string)
the Context used to get specific values like density or layout direction
the tint to be applied to this icon
the icon font used to draw this icon
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal
Deprecated
This constructor will be removed in a future release.
Replace with
FontIconDrawable(icon, iconFont, tint, context, density, size, weight)
A drawable that draws the icon using the iconFont. The icon will be size × size dp, and will be tinted with tint. If iconFont is a variable font, weight will applied as a variation setting, or else the font with the nearest weight will be picked.
Parameters
the icon Unicode character
the Context used to get specific values like density or layout direction
the tint to be applied to this icon
the icon font used to draw this icon
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal