问题标签 [support-image-loader]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
836 浏览

android - Novoda ImageLoader - 加载相同的图像

我正在使用 Novoda ImageLoader (https://github.com/novoda/ImageLoader),当我在 CursorAdapter 中使用这个加载器时,一切都很好。但是当我想在没有任何适配器的情况下使用一个 ImageView 的 Activity 时,我会为不同的 URL 获得相同的图像。

当我查看缓存目录时,加载了不同的图像,但未使用。知道哪里可能出现问题或如何正确使用此库来仅加载一个图像吗?
谢谢!

0 投票
1 回答
271 浏览

android - 下载的图片不适合 ImageView,虽然大小应该没问题(novoda)

我从 Google Maps Static API 下载静态地图。当我在浏览器中下载图像时,大小还可以(728x224)。您可以从下面检查网址。

但是当我尝试在我的 android 应用程序中查看它时,它太小了(540x166)。当然,我可以用“centerCrop”显示它,但这不是理想的解决方案。据我所知,这两种尺寸都以像素为单位,因此应该非常合适。我这样记录:

logcat 看起来像这样:

我使用ImageManager下载图像并在 hdpi 设备上进行测试。

那么为什么下载的图片有不同的大小呢?

编辑: 当我下载两倍大的图像时,里面的drawableImageView几乎和以前一样大小:pic size: 540/189

http://maps.google.com/maps/api/staticmap?center=52.2396,21.0174&zoom=14&size=729x225&scale=2&sensor=false

0 投票
2 回答
685 浏览

android - 使用 Novoda / ImageLoader 未加载图像

我正在尝试使用 ImageLoader 库将来自 Internet 的图像加载到网格视图中。但是,在imageManager.getLoader().load(fView.pic);.

有人可以告诉我我错在哪里。

StartApp 类:

活动类:

扩展 BaseAdapter 的 GridView 适配器类:

提前致谢。

0 投票
1 回答
96 浏览

android - 尝试使用 novoda ImageLoader 从 url 加载图片

嗨,我现在正在尝试使用 novoda Direct ImageLoader 方法从 url 加载图像我有这个类

我应该将 2 个图像放入 2 个 imageViews,但我得到一个空白屏幕。布局中有一个“Hello world”字符串没有显示,所以我想我确实得到了图像,但它们没有以图形方式显示。