C# Class com.joanzapata.iconify.Iconify

Exibir arquivo Open project: PragmaticIT/xiconify Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
addIconFontDescriptor ( IconFontDescriptor iconFontDescriptor ) : void
findIconForKey ( string iconKey ) : Icon

Retrieve an icon from a key,

Method Details

addIcons() public static method

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
return void

compute() public static method

public static compute ( android.content.Context context, CharSequence text ) : CharSequence
context android.content.Context
text CharSequence
return CharSequence

compute() public static method

public static compute ( android.content.Context context, CharSequence text, android.widget.TextView target ) : CharSequence
context android.content.Context
text CharSequence
target android.widget.TextView
return CharSequence

findTypefaceOf() public static method

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.
return [email protected]

with() public static method

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.
return IconifyInitializer