Android版是否有看点填充概念上类似于到iOS?类似于、看点、概念上、Android

由网友(微笑安葬了眼泪的骄傲)分享简介:有没有涉及到IPhone看点内Android.I填写要包括在我的ImageView的机器人形象这一概念的概念。请给我的code片段为这个概念?Is there any concept related to IPhone Aspect Fill within Android.I want to include this...

有没有涉及到IPhone看点内Android.I填写要包括在我的ImageView的机器人形象这一概念的概念。请给我的code片段为这个概念?

Is there any concept related to IPhone Aspect Fill within Android.I want to include this same concept on my android image on imageview. Please give me the code snippet for this concept?

推荐答案

如果你想要一个ImageView的这两个尺度上下,同时保持适当的比例,添加到您的XML:

If you want an ImageView that both scales up and down while keeping the proper aspect ratio, add this to your XML:

android:adjustViewBounds="true"
android:scaleType="centerCrop"

看这一点。

阅读全文

相关推荐

最新文章