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 | |
---|---|
![]()
java.lang.Object
|
Public constructors
TextAppearanceConfig
TextAppearanceConfig ()
Public methods
setShouldLoadFontSynchronously
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
boolean shouldLoadFontSynchronously ()
Returns flag indicating whether font resources should be loaded synchronously.
Returns | |
---|---|
boolean |
Classes