TextAppearanceConfig
public
class
TextAppearanceConfig
extends Object
java.lang.Object | |
↳ | com.google.android.material.resources.TextAppearanceConfig |
Utility for configuring TextAppearance.
Summary
Public constructors | |
---|---|
TextAppearanceConfig()
|
Public methods | |
---|---|
static
void
|
setShouldLoadFontSynchronously(boolean flag)
Specifies whether font resources should be loaded synchronously. |
static
boolean
|
shouldLoadFontSynchronously()
Returns flag indicating whether font resources should be loaded synchronously. |
Inherited methods | |
---|---|
Public constructors
TextAppearanceConfig
public TextAppearanceConfig ()
Public methods
setShouldLoadFontSynchronously
public static void setShouldLoadFontSynchronously (boolean flag)
Specifies whether font resources should be loaded synchronously. By default, they are loaded asynchronously to avoid ANR. Preload font resources and set this to true in emulator / instrumentation tests to avoid flakiness.
Parameters | |
---|---|
flag |
boolean |
shouldLoadFontSynchronously
public static boolean shouldLoadFontSynchronously ()
Returns flag indicating whether font resources should be loaded synchronously.
Returns | |
---|---|
boolean |