Universal Image Loader Wrapper for Android

I am not really sure if this is a good idea or not. Yet, I did it and created a github project that is a wrapper for Sergey Tarasevich's Android-Universal-Image-Loader.

In the first version, I just included one of the classes I usually use in my projects, namely ImageLoadingView.
I have, of course, removed many of the functions in the class to make it a minimal wrapper for now.

It could be used in the following way:

    <mobi.sherif.util.ui.ImageLoadingView
        android:id="@+id/image"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:bitmapConfig="RGB_565"
        app:cacheInMemory="true"
        app:cacheOnDisc="false"
        app:delayBeforeLoading="1000"
        app:imageForEmptyUri="@drawable/ic_empty"
        app:imageOnFail="@drawable/ic_error"
        app:imageOnLoading="@drawable/ic_stub"
        app:resetViewBeforeLoading="true" />

Obviously, not all the configurations of  UIL's DisplayImageOptions are available in xml but hopefully this will change in future releases.

Another important addition is specifying the url of the image to be loaded in XML using:

    app:imageUrl="http://www.android.com/images/logo.png"

Some times, some java code should be used to set the url: This still possible using the various setImage provided in the ImageLoadingView class.

Basically, that is what this wrapper is for now. It is available on github.

15 comments:

  1. I don’t think many of websites provide this type of information.
    Android App Development

    ReplyDelete
  2. A selection of Android application developers has surfaced in the industry in the recent past. As a matter of fact, there are some strong reasons attached to this. prompter

    ReplyDelete
  3. Since you know about the advantages of putting resources into the Android app, you can build up your app on this most encouraging stage to remain ahead in this aggressive market. fake gps location spoofer free

    ReplyDelete
  4. I found a lot of information here to create this actually best for all newbie here. Thank you for this information. Appvn Apk

    ReplyDelete
  5. This was a really great contest and hopefully I can attend the next one. It was alot of fun and I really enjoyed myself.. 9apps games

    ReplyDelete
  6. You have got some really good blog with useful content. keep it updated.
    Thanks
    yesmovies
    Pocket Mortys Recipes
    Pocket Mortys Recipes

    ReplyDelete
  7. the content are amazing thanks for sharing informative post with us. Download 9apps

    ReplyDelete
  8. I found your this post while searching for information about blog-related research ... It's a good post .. keep posting and updating information. ACMarket

    ReplyDelete
  9. Here you Can Download Stock Note 4 Firmware Free With Full Speed

    Galaxy Note 4 Firmware

    ReplyDelete
  10. Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!! Action Link Wireless

    ReplyDelete
  11. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work Emus4u

    ReplyDelete
  12. You have a good point here!I totally agree with what you have said!!Thanks for sharing your views...hope more people will read this article!!! Cydia Impactor

    ReplyDelete
  13. I found your this post while searching for information about blog-related research ... It's a good post .. keep posting and updating information. iFile IPA

    ReplyDelete
  14. Just admiring your work and wondering how you managed this blog so well. It’s so remarkable that I can't afford to not go through this valuable information whenever I surf the internet! Download iOS 11.3

    ReplyDelete