public class FontConfig extends java.lang.Object implements AbstractConfig.FontConfigInterface<FontConfig.FontBindData>
| Modifier and Type | Class and Description |
|---|---|
static class |
FontConfig.FontBindData |
protected static class |
FontConfig.FontViewHolder |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
currentPreviewText |
protected boolean |
isDirty |
| Constructor and Description |
|---|
FontConfig(int name,
java.io.File fontFile)
Create Font Config
|
FontConfig(int name,
java.lang.String fontAssetsPath)
Create Font Config
|
FontConfig(java.lang.String name,
java.io.File fontFile)
Create Font Config
|
FontConfig(java.lang.String name,
java.lang.String fontAssetsPath)
Create Font Config
|
| Modifier and Type | Method and Description |
|---|---|
DataSourceListAdapter.DataSourceViewHolder<FontConfig.FontBindData> |
createViewHolder(android.view.View view,
boolean useVerticalLayout)
Create a ViewHolder to Display in List
|
FontConfig.FontBindData |
generateBindData()
Load custom binding data Synchronous.
|
FontConfig.FontBindData |
generateBindDataAsync()
Load custom binding data asynchronous.
|
int |
getLayout()
Get the layout res id of the list item view.
|
java.lang.String |
getName()
Get the Name
|
android.graphics.Typeface |
getTypeface()
Get typeface
|
int |
getVerticalLayout()
Get the vertical layout res id of the list item view.
|
boolean |
isDirty() |
boolean |
isSelectable() |
void |
setDirtyFlag(boolean isDirty) |
public static java.lang.String currentPreviewText
protected boolean isDirty
public FontConfig(java.lang.String name,
java.lang.String fontAssetsPath)
name - Font namefontAssetsPath - font file in assets path.public FontConfig(java.lang.String name,
java.io.File fontFile)
name - Font namefontFile - font file path as file pathpublic FontConfig(@StringRes
int name,
java.lang.String fontAssetsPath)
name - Font namefontAssetsPath - font file in assets path.public FontConfig(@StringRes
int name,
java.io.File fontFile)
name - Font namefontFile - font file path as file pathpublic boolean isSelectable()
isSelectable in interface DataSourceInterface<FontConfig.FontBindData>@Nullable public android.graphics.Typeface getTypeface()
getTypeface in interface AbstractConfig.FontConfigInterface<FontConfig.FontBindData>public boolean isDirty()
isDirty in interface DataSourceInterface<FontConfig.FontBindData>public void setDirtyFlag(boolean isDirty)
setDirtyFlag in interface DataSourceInterface<FontConfig.FontBindData>public java.lang.String getName()
DataSourceInterfacegetName in interface DataSourceInterface<FontConfig.FontBindData>public int getLayout()
DataSourceInterfacegetLayout in interface DataSourceInterface<FontConfig.FontBindData>public int getVerticalLayout()
DataSourceInterfacegetVerticalLayout in interface DataSourceInterface<FontConfig.FontBindData>@NonNull public FontConfig.FontBindData generateBindData()
DataSourceInterfacegenerateBindData in interface DataSourceInterface<FontConfig.FontBindData>@Nullable public FontConfig.FontBindData generateBindDataAsync()
DataSourceInterfacegenerateBindDataAsync in interface DataSourceInterface<FontConfig.FontBindData>@NonNull public DataSourceListAdapter.DataSourceViewHolder<FontConfig.FontBindData> createViewHolder(@NonNull android.view.View view, boolean useVerticalLayout)
DataSourceInterfacecreateViewHolder in interface DataSourceInterface<FontConfig.FontBindData>view - view inflated with #getLayout