subsampling-scale-image-view icon indicating copy to clipboard operation
subsampling-scale-image-view copied to clipboard

ScaleType :FitXy doesn't work.

Open passmanagerapp opened this issue 4 years ago • 7 comments
trafficstars

The image doesn't fit the imageView

passmanagerapp avatar Sep 22 '21 15:09 passmanagerapp

I cannot answer bug reports when the template has been deleted. You haven't provided any of the requested information, particularly sample code, expected behaviour and screenshots of observed behaviour.

davemorrissey avatar Sep 22 '21 17:09 davemorrissey

Here is the source code: It doesn't fit the screen <com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView android:id="@+id/animalDrawable" android:layout_width="match_parent" android:layout_height="match_parent" />

binding.animalDrawable.setImage(ImageSource.resource(R.drawable.ant)

Screenshot_1632730493

passmanagerapp avatar Sep 27 '21 08:09 passmanagerapp

@davemorrissey

passmanagerapp avatar Sep 27 '21 13:09 passmanagerapp

This is working correctly, as you've configured it. scaleType is not supported by SSIV because it is not an ImageView. You may want setMinimumScaleType(SCALE_TYPE_CENTER_CROP) but as you haven't described what you're expecting I'm not sure.

davemorrissey avatar Oct 02 '21 22:10 davemorrissey

Sorry if I was bad to explain my problem. My problem is the image doesn't fit the screen when I don't specify any setMinimumScaleType. In normal ImageView when I use scaleType= fitXy it does fit the screen. But there is no feature like fitXy in your library, I think.

passmanagerapp avatar Oct 04 '21 16:10 passmanagerapp

For example in tablets when I use CENTER_CROP, it doesn't fit the screen. Screenshot_1633537744

passmanagerapp avatar Oct 06 '21 16:10 passmanagerapp

@davemorrissey

passmanagerapp avatar Oct 13 '21 13:10 passmanagerapp