Ironman Ironman - 1 year ago 94
Android Question

Is there any way to add Java Library in Xamarin Android

Let say I am working on

and Now in
I want to load Image in
. So I was search on Goolge and SO. I found this Thread.

In this thread discussion about Use this

But I don't know how to add this in my Project to work with it.

Any Help be Appreciated And Forgive me if this is silly question.

UpDate :

Now I have add the Library in my Project.

and To Load Image I use below code

string url = Settings.Base_URLs + "User/SetUser/" + item.DoctorId;
ImageView image = vh.searchimage;
Koush.UrlImageViewHelper.SetUrlDrawable(image, url);

But Image is not display.

Answer Source

You can add the UrlImageViewHelper from the Component store. Right click Components folder in your solution -> Get More Components -> Search for UrlImageViewHelper -> Add in the search box.

Also, have a look at Picasso component if you want asynchronous image download and cache.

You can use it as follows:

Koush.UrlImageViewHelper.SetUrlDrawable (imageView, "", Resource.Drawable.placeholder);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download