Android Fresco Show Full Image Without Crop

Apr 10, 2020
<com.facebook.drawee.view.SimpleDraweeView
    android:id="@+id/imageDraweeView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    fresco:actualImageScaleType="fitCenter"
    />

Do not use the android:scaleType attribute, nor the .setScaleType method. These have no effect on Drawees.

fitCenter: Scales the image so that it fits entirely inside the parent. One of width or height will fit exactly. Aspect ratio is preserved. The image is centered within the parent’s bounds.

References:

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.