Android Fresco Display Square Image

Sep 25, 2019

User fresco:viewAspectRatio="1", set the desired height or width and leave the other as wrap_content.

<com.facebook.drawee.view.SimpleDraweeView
    android:id="@+id/draweeView"
    android:layout_width="100dp"
    android:layout_height="wrap_content"
    fresco:viewAspectRatio="1"
    />

❀️ 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.