OR博客
Android_ImageView的maxWidth、MaxHeight不起作用。
OrdinaryRoad
创建于:2020-08-22 20:52:47
0
16
63
0
Android_ImageView的maxWidth、MaxHeight不起作用。
解决: 在xml中:需要和`android:adjustViewBounds="true"`一起使用才管用 在Java代码中,使用`imageView.setAdjustViewBounds(true);` 详情解释见参考: [Imageview.setAdjustViewBounds用法](https://blog.csdn.net/dq1005/article/details/47977717) 作者:sun_wenming 链接:https://www.jianshu.com/p/e48f3c3cd546 来源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
评论
楼主暂时不想被别人评论哦~