So after tons of frustrations with trying to stretch my image properly to width I realise my real problem is that setImageResource acts different from setImageDrawable (which I’m trying to use). XML below gives me perfect width, aspect ratio stretched image with setImageResource but with setImageDrawable the image is not stretched to the width, any suggestions to how I should handle the problem? I use setImageDrawable because I get the image from the internet alternatives are welcome 🙂
<ImageView
android:id="@+id/item_image"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"/>
Oh and I’ve tryed scaletype, the one giving best results was centercrop but it crops which isn’t desired.
One fix I’ve found is to use a bitmap as setImageBitmap apparently works similar to setImageResource. I’m still open to other suggestions.