String urlThumnail = currentNewsItem.getUrlThumbnail();
loadImages(urlThumnail, newsHolder);
break;
case 2:
break;
default:
break;
}
}
private void loadImages(String urlThumbnail, final NewsViewHolder holder) {
if (urlThumbnail != null) {
imageLoader.get(urlThumbnail, new ImageLoader.ImageListener() {
@Override
public void onResponse(ImageLoader.ImageContainer response, boolean isImmediate) {
holder.thumbnail.setImageBitmap(response.getBitmap());
}
@Override
public void onErrorResponse(VolleyError error) {
}
});
}
}
XML
<ImageView
android:id="@+id/DetailsNewsImage_cardView"
android:layout_below="@+id/DetailNews_title"
android:layout_width="match_parent"
android:layout_height="195dp"
android:scaleType="centerCrop">
我想提高图像的分辨率,我通过JSon接收图像,然后在加载后我在Xml中扩大了它的大小。在这一切之后我收到的图像模糊了。我希望像原始图像一样提高图像分辨率。如何提高图像分辨率?