【发布时间】:2013-07-18 21:06:11
【问题描述】:
ImageView 获取图像并包装内容,因此如果图像的尺寸为 100x100,则 ImageView 具有相同的尺寸。我只想指定此 ImageView 的 layout_height 以及当它与图像匹配以正确调整 ImageView 的 layout_width 大小时。
这是一个例子:
图像尺寸 = 100x100;
ImageView 的 layout_height = 200;
ImageView 的 layout_width 应该变成 200 而不是 100。
这可能吗?
【问题讨论】:
标签: android user-interface imageview android-imageview ui-design