Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

ListView Text, Image [Please, help!]

$
0
0

Hi, sorry for my bad English, i from russian :)

I have array - it text, photo, video. I added text in ListView through IList and foreach (there a lot of quotes, i got them through API request):

desc2 = new List(); desc2.Add(text); var desc = desc2; ListView listview = FindViewById(Resource.Id.listView1); var adapter = new ArrayAdapter(this, Android.Resource.Layout.SimpleListItem1, desc); adapter.SetDropDownViewResource(Android.Resource.Layout.SimpleListItem1); listview.Adapter = adapter;

This method very good work with text, but if i want to display image, how do I do if i have url image? Please help.

P.S I got JSON Array, which I sort out over the cycle

foreach (JToken result in apiResults)


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>