C# Class JoanZapata.XamarinIconify.Iconify

ファイルを表示 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, ICharSequence text ) : ICharSequence
Compute ( Android.Content.Context context, ICharSequence text, Android.Widget.TextView target ) : ICharSequence
FindTypefaceOf ( Icon icon ) : IconFontDescriptorWrapper

Finds the Typeface to apply for a given icon.

With ( IIconFontDescriptor iconFontDescriptor ) : IconifyInitializer

Add support for a new icon font.

Private Methods

Method Description
AddIconFontDescriptor ( IIconFontDescriptor 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, ICharSequence text ) : ICharSequence
context Android.Content.Context
text ICharSequence
return ICharSequence

Compute() public static method

public static Compute ( Android.Content.Context context, ICharSequence text, Android.Widget.TextView target ) : ICharSequence
context Android.Content.Context
text ICharSequence
target Android.Widget.TextView
return ICharSequence

FindTypefaceOf() public static method

Finds the Typeface to apply for a given icon.
public static FindTypefaceOf ( Icon icon ) : IconFontDescriptorWrapper
icon Icon The icon for which you need the typeface.
return JoanZapata.XamarinIconify.Internal.IconFontDescriptorWrapper

With() public static method

Add support for a new icon font.
public static With ( IIconFontDescriptor iconFontDescriptor ) : IconifyInitializer
iconFontDescriptor IIconFontDescriptor The IconDescriptor holding the ttf file reference and its mappings.
return IconifyInitializer