StateLayoutConfig

constructor(@DrawableRes loadingDrawable: Int? = null, @DrawableRes errorDrawable: Int? = null, @StringRes loadingMessage: Int? = null, @StringRes defaultMessage: Int? = null, @StringRes retryAction: Int? = null, @AnimRes inAnimation: Int = android.R.anim.fade_in, @AnimRes outAnimation: Int = android.R.anim.fade_out)

Parameters

loadingDrawable

drawable for loading state, set this to null if you wish to hide the element

errorDrawable

drawable for error state, set this to null if you wish to hide the element

loadingMessage

label for loading message, set this to null if you wish to hide the element

retryAction

label for retry action, set this to null if you wish to hide the element

inAnimation

optional animations to use for switching in views

outAnimation

optional animations to use for switching out views