2016-02-27 74 views

回答

0

通过将android:adjustViewBounds设置为true,ImageView将调整大小以适应资源的大小。当然,布局需要适应这一点。如果你想中心举例,你可以把你的ImageView放置在一个RelativeLayout中,并且使用centerInParent