Android Fresco Display Square Image

September 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"
    />
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.