public class Iconify
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Iconify.IconifyInitializer
Allows chain calls on
with(IconFontDescriptor). |
| Constructor and Description |
|---|
Iconify() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addIcons(android.widget.TextView... textViews)
Replace "{}" tags in the given text views with actual icons, requesting the IconFontDescriptors
one after the others.
|
static java.lang.CharSequence |
compute(android.content.Context context,
java.lang.CharSequence text) |
static java.lang.CharSequence |
compute(android.content.Context context,
java.lang.CharSequence text,
android.widget.TextView target) |
static Icon |
findIconForKey(java.lang.String iconKey)
Retrieve an icon from a key,
|
static IconFontDescriptorWrapper |
findTypefaceOf(Icon icon)
Finds the Typeface to apply for a given icon.
|
static Iconify.IconifyInitializer |
with(IconFontDescriptor iconFontDescriptor)
Add support for a new icon font.
|
public static Iconify.IconifyInitializer with(IconFontDescriptor iconFontDescriptor)
iconFontDescriptor - The IconDescriptor holding the ttf file reference and its mappings.public static void addIcons(android.widget.TextView... textViews)
This is a one time call. If you call TextView.setText(CharSequence) after this,
you'll need to call it again.
textViews - The TextView(s) to enhance.public static java.lang.CharSequence compute(android.content.Context context,
java.lang.CharSequence text)
public static java.lang.CharSequence compute(android.content.Context context,
java.lang.CharSequence text,
android.widget.TextView target)
public static IconFontDescriptorWrapper findTypefaceOf(Icon icon)
icon - The icon for which you need the typeface.with(IconFontDescriptor)} prior to calling this method.public static Icon findIconForKey(java.lang.String iconKey)