大家使用android:maxHeight,maxWidth属性时 会发现不生效。其他看api可以知道需要加上 android:adjustViewBounds="true" 上述属性才生效
imageView 的 android:maxHeight,maxWidth属性
最新推荐文章于 2024-08-15 17:42:26 发布
本文介绍在Android开发中如何正确使用maxHeight和maxWidth属性来限制视图的最大高度和宽度。通常情况下,这些属性默认不会生效,需要额外设置adjustViewBounds属性为true才能使maxHeight和maxWidth起作用。
1627

被折叠的 条评论
为什么被折叠?



