How to size image to its original size

前端 未结 1 1835
春和景丽
春和景丽 2021-01-27 09:13

Android\'s imageView has a serious flaw: it makes my image into a square frame, with the rest as white space. How can I fix this? I have tried scale type, but it didn\'t work. T

相关标签:
1条回答
  • 2021-01-27 09:57

    Without your code I can only guess, but I suggest that you add either the xml attribute android:adjustViewBounds="true" or in your activity, give the imageview that attribute with imageView.setAdjustViewBounds(true)

    0 讨论(0)
提交回复
热议问题