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:
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.