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

listview adapter

$
0
0

I want to set a string array to my list view. With below code I have "An unhandled exception" in line 3. What is problem? Did I forget something?

string[] items;
items = {"01", "02", "03", "04"};
ArrayAdapter<string> adapter = new ArrayAdapter<string>(this, Android.Resource.Layout.SimpleListItem1, items);
lstview.Adapter = adapter;

Viewing all articles
Browse latest Browse all 204402

Trending Articles



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