Issue
I want the drawable inside my ImageView to be shown aligned to the bottom (of the Imageview), and not centered.
Is it possible to do that?
Solution
Maybe this is too late, but even I ran into the same problem today and fixed it by using the following snippet.
All the alignment/scaling options are in the scaleType attribute.
Now, if you want to align the image with the beginning of the ImageView, use android:scaleType="fitStart"
.
Similarly, android:scaleType="fitEnd"
to align it with the bottom of the ImageView.
Answered By - Swayam
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.