Android ImageView ScaleType and item height

后端 未结 4 1507
滥情空心
滥情空心 2020-12-09 09:54

Things looked quite simple first but in the end the result is not good. I have an image which has a width larger than screen\'s width. So I need to scale it down in my image

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-09 10:21

    Could you use FitXY? This would work if you knew the size of the area you were putting the image into. CentreInside may also work, I've used this to scale down images, but I think it depends if you've control of the size of the bounding layout element.

提交回复
热议问题