Q:

How to preload imageView's height and width attribute? 

When using a recycleView with many images, Glide takes a while to load the image for the first time, how can I preload the image's height and width by setting the imageView to that size before using glide to load it in? 
Glide.with(mContext)
      .load(link)
      .apply(RequestOptions.centerInsideTransform())
      .into(holder.vhImageView);

Reddit also does it this way

A:

Glide may have an equivalent method, but I use Picasso, and you can set a .placeHolder(R.drawable.placeholder) image that will be in place until the image actually loads. 
You could assign holder.vhImageView a default image in xml that should also work as a placeholder as long as Glide doesn't clear it as it's loading the new image? 
You could set a minHeight on the holder.vhImageView in XML but that can cause problems if the views loaded end up being shorter than that.