CustomFontHelper

com.anywherecommerce.android.sdk.util

Class CustomFontHelper

  • java.lang.Object

  • com.anywherecommerce.android.sdk.util.CustomFontHelper

  • public class <span class="typeNameLabel">CustomFontHelper</span>
    extends java.lang.Object
    

    Taken from: http://stackoverflow.com/a/16648457/75579

Nested Class Summary

  Modifier and TypeClass and Description`static class ``<span class="memberNameLink">

CustomFontHelper.FontCache`

Constructor Summary

  Constructor and Description`<span class="memberNameLink">

CustomFontHelper()`

Method Summary

  Modifier and TypeMethod and Description`static void````
  <span class="memberNameLink">

setCustomFont(TextView textview,
java.lang.String font,
Context context)
```Sets a font on a textview

  `static void````
  <span class="memberNameLink">

setPageFont(Context ctx,
View rootView,
java.lang.String fontName)
```

Methods inherited from class java.lang.Object

        `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

CustomFontHelper

        `public CustomFontHelper()`

Method Detail

setCustomFont

        ```
        public static void setCustomFont(TextView textview,
                                         java.lang.String font,
                                         Context context)
        ```
        Sets a font on a textview
        
        Parameters:`textview` `font` `context`

setPageFont

        ```
        public static void setPageFont(Context ctx,
                                       View rootView,
                                       java.lang.String fontName)
        ```