FixedPreloadSizeProvider

open class FixedPreloadSizeProvider<T> : ListPreloader.PreloadSizeProvider<T>

A com.bumptech.glide.ListPreloader.PreloadSizeProvider with a fixed width and height.

Parameters

<T>

The type of the model the size should be provided for.

Constructors

Link copied to clipboard
open fun FixedPreloadSizeProvider(width: Int, height: Int)
Constructor for a PreloadSizeProvider with a fixed size.

Functions

Link copied to clipboard
open fun getPreloadSize(    item: T,     adapterPosition: Int,     itemPosition: Int): Array<Int>
Returns the size of the view in the list where the resources will be displayed in pixels in the format [x, y], or null if no size is currently available.