Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScaleType :FitXy doesn't work. #560

Open
passmanagerapp opened this issue Sep 22, 2021 · 7 comments
Open

ScaleType :FitXy doesn't work. #560

passmanagerapp opened this issue Sep 22, 2021 · 7 comments

Comments

@passmanagerapp
Copy link

The image doesn't fit the imageView

@davemorrissey
Copy link
Owner

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.

@passmanagerapp
Copy link
Author

passmanagerapp commented Sep 27, 2021

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
Copy link
Author

@davemorrissey

@davemorrissey
Copy link
Owner

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.

@passmanagerapp
Copy link
Author

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
Copy link
Author

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

@passmanagerapp
Copy link
Author

@davemorrissey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants