Android Default transformations


Example

Glide includes two default transformations, fit center and center crop.

Fit center:

Glide.with(context)
    .load(yourUrl)
    .fitCenter()
    .into(yourView);

Fit center performs the same transformation as Android's ScaleType.FIT_CENTER.

Center crop:

Glide.with(context)
    .load(yourUrl)
    .centerCrop()
    .into(yourView);

Center crop performs the same transformation as Android's ScaleType.CENTER_CROP.

For more information, see Glide's wiki.