Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. private void ParseAndDisplay(JsonValue json)
  2. {
  3. dynamic teamData = json["teams"];
  4.  
  5. //TextView name = FindViewById<TextView>(Resource.Id.txtName);
  6. string[] teams;
  7. foreach (var team in teamData)
  8. {
  9. var name = team["name"];
  10. Console.Out.WriteLine("rn {0}", name);
  11. teams = new string[] { name };
  12. //TextView name = FindViewById<TextView>(Resource.Id.txtName);
  13. //name.Text = team["name"];
  14. ListAdapter = new ArrayAdapter<String>(this, Android.Resource.Layout.SimpleListItem1, teams);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement