I use below code to set ImageView's ScaleType:
iv.setScaleType(ScaleType.FIT_END);
It will fit right-bottom.
But I want to make picture fit left-bottom.
How can I do it?
Try setting the imageview's adjust view bound to true and then set the align bottom parent and align left parent to true. hope that works :)
Another solution:
imageView.setAdjustViewBounds(true);
imageView.setBaselineAlignBottom(true);
Works for API_LEVEL
>= 11.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With