2016-02-27 73 views

回答

0

通過將android:adjustViewBounds設置爲true,ImageView將調整大小以適應資源的大小。當然,佈局需要適應這一點。如果你想中心舉例,你可以把你的ImageView放置在一個RelativeLayout中,並且使用centerInParent