Created
September 9, 2017 11:50
-
-
Save Tarelochkin/d4c08703b11d4ae5153dd17da156babe to your computer and use it in GitHub Desktop.
Scale Image to fill ImageView width and keep aspect ratio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ImageView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:adjustViewBounds="true" | |
android:scaleType="fitCenter"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment