当对ImageView设置了属性scaleType为FIT_START时,可以通过调用ImageView的setAdjustViewBounds(true)。

即:

imageView.setScaleType(ImageView.FIT_START);

imageView.setAdjustViewBounds(true);

相关文章:

  • 2021-10-31
  • 2021-10-14
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2021-06-14
  • 2021-07-20
猜你喜欢
  • 2021-09-02
  • 2021-12-21
  • 2021-08-14
  • 2021-12-17
  • 2021-09-03
  • 2021-04-26
相关资源
相似解决方案