public class AssetUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ROBOTO_BLACK |
static String |
ROBOTO_BOLD |
static String |
ROBOTO_MEDIUM |
static String |
ROBOTO_REGULAR |
Constructor and Description |
---|
AssetUtils() |
Modifier and Type | Method and Description |
---|---|
static android.graphics.Typeface |
getCustomTypeface(String assetsPath)
Get custom typeface from assets
|
static void |
setContext(android.content.Context context) |
static void |
setTypeFace(android.graphics.Typeface typeFace,
android.widget.TextView view)
Set typeface for a TextView
|
static void |
setTypeFace(android.graphics.Typeface typeFace,
android.view.ViewGroup parent)
Set typeface for a viewgroup
|
public static final String ROBOTO_BOLD
public static final String ROBOTO_REGULAR
public static final String ROBOTO_MEDIUM
public static final String ROBOTO_BLACK
public static void setContext(android.content.Context context)
public static android.graphics.Typeface getCustomTypeface(String assetsPath)
assetsPath
- public static void setTypeFace(android.graphics.Typeface typeFace, android.view.ViewGroup parent)
typeFace
- parent
- public static void setTypeFace(android.graphics.Typeface typeFace, android.widget.TextView view)
typeFace
- view
- Copyright © 2003–2016 eXo Platform SAS. All rights reserved.