六狼论坛's Archiver
首页
›
Android开发
› android ImageView android:adjustViewBounds属性的作用。
dengyin2000
发表于 2013-1-14 18:00:58
android ImageView android:adjustViewBounds属性的作用。
android:adjustViewBounds
是否保持宽高比。需要与maxWidth、MaxHeight一起使用,否则单独使用没有效果。
android:cropToPadding
是否截取指定区域用空白代替。单独设置无效果,需要与scrollY一起使用,效果如下,实现代码见代码部分:
页:
[1]
查看完整版本:
android ImageView android:adjustViewBounds属性的作用。