stephanenicolas / robospice

Repo of the Open Source Android library : RoboSpice. RoboSpice is a modular android library that makes writing asynchronous long running tasks easy. It is specialized in network requests, supports caching and offers REST requests out-of-the box using extension modules.
Apache License 2.0
2.95k stars 545 forks source link

Not able to download images in ListView #416

Closed madhurranjan closed 9 years ago

madhurranjan commented 9 years ago

Hi,

I've tried looking at the robospice-sample-ui-spicelist and robospice-sample-spring-android to eventually show a list view of a bunch of descriptions and image links for each entry. The listener works correctly and calls the Adapter . The descriptions of each entry turn up but the images don't in the activity. The implementation I have is very similar to what is present in robospice-sample-ui-spicelist. I'm using the 1.14.11 versions of jars. I also came across documentation present here which talks about the following: All you have to do is to Override createRequest(java.lang.Object,int,int,int) to define a bitmapRequest for each object in the list that is associated an image to display. Also please note that in your getView(int,android.view.View,android.view.ViewGroup) method, you must call updateListItemViewAsynchronously(http://grepcode.com/file/repo1.maven.org/maven2/com.octo.android.robospice/robospice-ui-spicelist/1.4.11/com/octo/android/robospice/spicelist/BaseSpiceArrayAdapter.java/).

I tried implementing the getView method as well but in vain. The thumbnail urls are all valid and I'm able to see them. Can someone please explain how the images are downloaded ?

madhurranjan commented 9 years ago

Hi, Can someone please help here?

madhurranjan commented 9 years ago

Imageview wasn't set right. Its working now.