|Constructor and Description|
Constructor for a builder that uses the given size as the width and height of the Bitmaps to prefill.
Constructor for a builder that uses the given dimensions as the dimensions of the Bitmaps to prefill.
|Modifier and Type||Method and Description|
Sets the weight to use to balance how many Bitmaps of this type are prefilled relative to the other requested types.
public Builder(int size)
size- The width and height in pixels of the Bitmaps to prefill.
public Builder(int width, int height)
width- The width in pixels of the Bitmaps to prefill.
height- The height in pixels of the Bitmaps to prefill.
public PreFillType.Builder setConfig(@Nullable android.graphics.Bitmap.Config config)
Bitmap.Configfor the Bitmaps to pre-fill.
config- The config to use, or null to use Glide's default.
public PreFillType.Builder setWeight(int weight)
weight- An integer indicating how to balance pre-filling this size and configuration of
Bitmapagainst any other sizes/configurations that may be being pre-filled.