How can I scale an image loading into a DraweeView
so that the width is always fitted?
The DraweeView
is configured like this:
<com.facebook.drawee.view.SimpleDraweeView
android:layout_width="match_parent"
android:layout_height="X dp"/>
with "X dp"
meaning some fixed amount of dp
. The image's height should be cropped if it doesn't fit in the View
.