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.

48 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
  15. Thank you for sharing this very nice post awesome keep sharing.
    touch here

    ReplyDelete
  16. That is very interesting; you are a very skilled blogger. I have shared your website in my social networks! A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article.

    software testing course in chennai

    ReplyDelete
  17. This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post! Read more at MaddenMobilechampions.com

    ReplyDelete
  18. Best way to download Emus4u Without Jailbreak

    ReplyDelete
  19. I thought it was incredibly useful, don’t understand some people, just ignore them and keep doing what you do best. brawl stars hack ios

    ReplyDelete
  20. This is the first & best article to make me satisfied by presenting good content. I feel so happy and delighted.By Learn Digital Marketing Course Training in Chennai it will help to get Digital Marketing Course Training in Chennai.Learn Best Digital Marketing Course Training in Chennai's professional institute to get reputed job.

    ReplyDelete
  21. I want you to thank for your time of this wonderful read!!! I definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog!
    ExcelR Artificial Intelligence course

    ReplyDelete
  22. This is truly a great source of details, I will certainly typically follow it to know even more information and also expand my expertise, I assume every person ought to know it, many thanks. Get more info about best power bi dashboards

    ReplyDelete
  23. The great variety of so-called image loader wrapper programs demands really high quality from your program to be competitive.

    ReplyDelete
  24. I finally found great post here.I will get back here. I just added your blog to my bookmark sites. thanks.Quality posts is the crucial to invite the visitors to visit the web page, that's what this web page is providing.
    ExcelR data science course
    business analytics course
    data analytics course
    data science interview questions

    ReplyDelete

  25. You actually make it look so easy with your performance but I find this matter to be actually something which I think I would never comprehend. It seems too complicated and extremely broad for me. I'm looking forward for your next post, I’ll try to get the hang of it!
    artificial intelligence course
    Machine Learning Training in Bangalore

    ReplyDelete
  26. Really appreciate this wonderful post that you have provided for us.Great site and a great topic as well i really get amazed to read this. Its really good.Get for more information software development company

    ReplyDelete
  27. Awesome Post!!! I really enjoyed reading this article. It's really a nice experience to read your post. Thanks for sharing.
    Data Science Course
    Data Science Course in Marathahalli

    ReplyDelete
  28. Thanks a lot for sharing it, that’s truly has added a lot to our knowledge about this topic. Have a more success ful day. always find something interesting.
    Data Science Training In Hyderabad

    ReplyDelete
  29. The concept has been explained very well. Gained clear knowledge about the prominence of AWS
    AWS Training in Hyderabad

    ReplyDelete

  30. Thanks for sharing such wonderful information on it. Keep updating the your blog
    Artificial Intelligence Training In Hyderabad

    ReplyDelete
  31. Thanks for sharing blog. The explanation of your articles is very good. It was very interesting and meaningful. I really appreciate it! Keep updating stuffs like this.
    Machine Learning Training In Hyderabad

    ReplyDelete
  32. Great blog created by you. I read your blog, its best and useful information. Super blogging and keep it updating
    Blockchain Training in Hyderabad

    ReplyDelete
  33. As always your articles do inspire me. Every single detail you have posted was great. ExcelR Machine Learning Course Pune

    ReplyDelete
  34. This was really one of my favorite website. ExcelR Machine Learning Course Pune Please keep on posting.

    ReplyDelete
  35. I just got to this amazing site not long ago. I was actually captured with the piece of resources you have got here. Big thumbs up for making such wonderful blog page!
    Data Science Course in Bangalore

    ReplyDelete