setProgressViewEndTarget

open fun setProgressViewEndTarget(scale: Boolean, end: Int)(source)

The refresh indicator resting position is always positioned near the top of the refreshing content. This position is a consistent location, but can be adjusted in either direction based on whether or not there is a toolbar or actionbar present.

Parameters

scale

Set to true if there is no view at a higher z-order than where the progress spinner is set to appear. Setting it to true will cause indicator to be scaled up rather than clipped.

end

The offset in pixels from the top of this view at which the progress spinner should come to rest after a successful swipe gesture.