C# Класс JoanZapata.XamarinIconify.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, 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.

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

Метод Описание
AddIconFontDescriptor ( IIconFontDescriptor 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, ICharSequence text ) : ICharSequence
context Android.Content.Context
text ICharSequence
Результат ICharSequence

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

public static Compute ( Android.Content.Context context, ICharSequence text, Android.Widget.TextView target ) : ICharSequence
context Android.Content.Context
text ICharSequence
target Android.Widget.TextView
Результат ICharSequence

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

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.
Результат JoanZapata.XamarinIconify.Internal.IconFontDescriptorWrapper

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

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.
Результат IconifyInitializer