Search code examples
androidimageviewscale

Android ImageView how to fit left-bottom such as setScaleType(ScaleType.FIT_END);, but not fit right-bottom


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?


Solution

  • 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 :)