1
我在我的应用程序中使用通用图像加载器。通用图像加载器图像比例尺
这是最好的库下载图像,但我有一个问题。
我下载了比设备宽度小的图像。
我需要的图像有宽度=设备宽度和缩放高度。
任何想法我可以做到这一点?
我在我的应用程序中使用通用图像加载器。通用图像加载器图像比例尺
这是最好的库下载图像,但我有一个问题。
我下载了比设备宽度小的图像。
我需要的图像有宽度=设备宽度和缩放高度。
任何想法我可以做到这一点?
可以使用的ImageView这样
<ImageView
android:id="@+id/imageView_clock"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="centerCrop"
android:src="@drawable/ic_icon" />
及其取决于您的图像大小网站
android:scaleType="centerCrop" // use this
只要检查该属性的android:scaleType = “fitXY” –
你可以用'机器人:scaleType =“fitXY”'或'android:scaleType =“centerCrop”'为您的'ImageView'。 – Piyush
你有没有想要达到的目标@Unmerciful ???? –