You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have added images into the GlazyImageView. Some images are fitting perfectly and some others are not fitting into the view, some of them are auto cropping from border of the image.
Any solution for this?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hai Md. Rashadul Alam,
I'm glad that you tried my code template.
About the issue,
- "center_crop" is the only supported and default scale-type(at least
for now).
- Thought it crops the border off, it doesn't stretch the image which
might look ugly sometimes.
- fit-xy mode will letterbox the image, adding solid colours at the
edges. This makes the cuts on the image look ugly.
- So I just chose "center-crop" mode to fill the View and crop off the
remaining. Looks neat while animating.
Anyway I will try to include the other scale-types if I have free time.
Otherwise you can modify
the GlazyImageView.onDraw() method, and merge it to the repo if you are
interested.
Thank you very much.
On Tue, Dec 5, 2017 at 4:27 PM, Md. Rashadul Alam ***@***.***> wrote:
Hi,
I have added images into the GlazyImageView. Some images are fitting
perfectly and some others are not fitting into the view, some of them are
auto cropping from border of the image.
Any solution for this?
Thanks in advance.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AKdIoNFgZlZE5dDFZGDBug6kq0s35O4bks5s9SGagaJpZM4Q2Gdn>
.
Hi,
I have added images into the GlazyImageView. Some images are fitting perfectly and some others are not fitting into the view, some of them are auto cropping from border of the image.
Any solution for this?
Thanks in advance.
The text was updated successfully, but these errors were encountered: