mortenjust / one-button

What if your tv remote control had only one button?
5 stars 0 forks source link

Images for thumbnails #22

Closed fsalbrechter closed 10 years ago

fsalbrechter commented 10 years ago
mortenjust commented 10 years ago

How do I actually define this image to be loaded as a local drawable? The custom array adapter class does it like this

thumbNail.setImageUrl("http://www.classicposters.com/images/nopicture.gif", imageLoader);

Can I just do @drawable[...] instead of the url?

fsalbrechter commented 10 years ago

Use: http://developer.android.com/reference/android/widget/ImageView.html#setImageResource(int)

Actually this object is not an ImageView but a NetworkImageView. It is a class that extends ImageView and adds some cool stuff like loading an image asynchronous from the web and displaying it when it finished loading. (setImageUrl) see https://android.googlesource.com/platform/frameworks/volley/+/master/src/com/android/volley/toolbox/NetworkImageView.java

You should be able to treat it like an ImageView though, I just wanted to give you some more information.

fsalbrechter commented 10 years ago

This is done right?