placeholder

open fun placeholder(drawable: Drawable): T

Sets an Drawable to display while a resource is loading.

Replaces any previous calls to this method or placeholder.

Return

This request builder.

Parameters

drawable

The drawable to display as a placeholder.


open fun placeholder(resourceId: Int): T

Sets an Android resource id for a Drawable resource to display while a resource is loading.

Replaces any previous calls to this method or placeholder

Return

This request builder.

Parameters

resourceId

The id of the resource to use as a placeholder