1
我使用ImageDrawable在ImageView Widget中显示图像,但此图像非常短。 当我使用ImageResource房产面积是好的为什么在ImageView Android中使用ImageDrawable属性图像的大小非常短?
我的代码 ImageResource:
imageview.setImageResource(R.drawable.a1);
我的代码 ImageDrawable:
imageview.setImageDrawable(R.drawable.a1);
任何帮助,将不胜感激。感谢
的ImageView的所有东西尺寸的第一?并尝试更改ImageView的缩放类型。 –
size imageview是Wrap_content –
你的'a1'图像(px)的大小是多少? –