android setimagedrawable 设置自适应,Android辟谣篇:ImageView宽高自适应
关于ImageView的自适应,一般是根据图片的宽高比进行等比缩放展示。下面重点讲解一下如何正确使用 ImageView的adjustViewBounds属性实现图片的自适应展示。adjustViewBounds官方API:Set this to true if you want the ImageView to adjust its bounds to preserve the aspect r...