C# Класс com.joanzapata.iconify.Iconify

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
addIcons ( ) : void

Replace "{}" tags in the given text views with actual icons, requesting the IconFontDescriptors one after the others.

This is a one time call. If you call TextView#setText(CharSequence) after this, you'll need to call it again.

compute ( android.content.Context context, CharSequence text ) : CharSequence
compute ( android.content.Context context, CharSequence text, android.widget.TextView target ) : CharSequence
findTypefaceOf ( Icon icon ) : [email protected]

Finds the Typeface to apply for a given icon.

with ( IconFontDescriptor iconFontDescriptor ) : IconifyInitializer

Add support for a new icon font.

Приватные методы

Метод Описание
addIconFontDescriptor ( IconFontDescriptor iconFontDescriptor ) : void
findIconForKey ( string iconKey ) : Icon

Retrieve an icon from a key,

Описание методов

addIcons() публичный статический Метод

Replace "{}" tags in the given text views with actual icons, requesting the IconFontDescriptors one after the others.

This is a one time call. If you call TextView#setText(CharSequence) after this, you'll need to call it again.

public static addIcons ( ) : void
Результат void

compute() публичный статический Метод

public static compute ( android.content.Context context, CharSequence text ) : CharSequence
context android.content.Context
text CharSequence
Результат CharSequence

compute() публичный статический Метод

public static compute ( android.content.Context context, CharSequence text, android.widget.TextView target ) : CharSequence
context android.content.Context
text CharSequence
target android.widget.TextView
Результат CharSequence

findTypefaceOf() публичный статический Метод

Finds the Typeface to apply for a given icon.
public static findTypefaceOf ( Icon icon ) : [email protected]
icon Icon The icon for which you need the typeface.
Результат [email protected]

with() публичный статический Метод

Add support for a new icon font.
public static with ( IconFontDescriptor iconFontDescriptor ) : IconifyInitializer
iconFontDescriptor IconFontDescriptor The IconDescriptor holding the ttf file reference and its mappings.
Результат IconifyInitializer