jfragosoperez / HideyBarPhotoViewScreen

Apache License 2.0
39 stars 5 forks source link

Use existing drawable #1

Open easycheese opened 9 years ago

easycheese commented 9 years ago

I already use Universal Image Loader to pull down a drawable. Is there any way to integrate the existing drawable?

jfragosoperez commented 9 years ago

Hi. I created the class PhotoLoader so if anyone wanted to use a different photo loader different than Picasso, can extend this class and create a new type. For instance, you can crate the UniversalImagePhotoLoader class and assign a new type in PhotoLoader class, like TYPE_UNIVERSAL_PHOTO_LOADER = 1. Then, in the HideyBarPhotoViewIntent you have to take into account this new type, as well.

PhotoLoader class was created for both people can use their preferred photo loading lib and having different setups (like placeholder, or progress support in the libs that provide this feature).

You're always welcome to try and do a pull request, I'll be very happy to help if you need something, and of course I'll mention you as a collaborator.