-
Notifications
You must be signed in to change notification settings - Fork 502
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
away to fill width and keep aspect ratio in height #30
Comments
I've solved that via extending SmartImageView with this class: public class AspectRatioImageView extends SmartImageView {
} |
@alex-oleshkevich does it work even when the size of the image is not know because the image is still to come. and will it get fixed when downloading is finished. |
yes |
Hello, trying this class, but the remote images that have different sizes are not scalling(for instance there are portrait images and landscape ones). Is this just for internal drawables or it should work for remote images? Thank you |
hi,
this way suggest a simple class that extends from imageview but this does not work here since we don't know width until we fetch/download the image
http://stackoverflow.com/questions/18077325/scale-image-to-fill-imageview-width-and-keep-aspect-ratio
any suggestion ?
The text was updated successfully, but these errors were encountered: