MostafaGazar / CustomShapeImageView

A library for supporting custom shaped ImageView(s) using SVGs and paint shapes
http://mostafagazar.github.io/CustomShapeImageView
Apache License 2.0
1.62k stars 425 forks source link

Issue with scaleType #19

Open konopkoman opened 8 years ago

konopkoman commented 8 years ago

Issue with scaleType="center" when set an image in runtime. Image shown as centerCrop instead.

Murtowski commented 7 years ago

I'm using custom svg shape, and then load image with Picasso. SvgImageView.scaleType does not react on any of scale type. The image inside has always the same properities - streched horizontally in my case

<com.meg7.widget.SvgImageView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="@dimen/avatar_shape_margin_large" android:adjustViewBounds="true" android:scaleType="fitCenter" app:svg_raw_resource="@raw/custom_avatar_shape"/>