Android Glide suggest change

Default transformations

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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents