ViewTarget

open fun ViewTarget(view: T)

Constructor that defaults waitForLayout to false.


open fun ViewTarget(view: T, waitForLayout: Boolean)

Deprecated

Use waitForLayout instead.

Parameters

waitForLayout

If set to true, Glide will always wait for any pending layout pass before checking for the size a View. If set to false Glide will only wait for a pending layout pass if it's unable to resolve the size from layout parameters or an existing View size. Because setting this parameter to true forces Glide to wait for the layout pass to occur before starting the load, setting this parameter to true can cause flashing in some cases and should be used sparingly. If layout parameters are set to fixed sizes, they will still be used instead of the View's dimensions even if this parameter is set to true. This parameter is a fallback only.