title: Bind Android Spinner with Http reponse data (json) in Xamarin
body: <p>i am learning xamarin android. I am stuck in something strange.</p>
  
  <p>Normally i wanted to bind my android spinner with my json data which i pulled from my webapi. i wrote this block of code. </p>
  
  <pre><code> var spinner = FindViewById&lt;Spinner&gt;(Resource.Id.RouteSelect);
  
          string url = "http://localhost/api/android/pullroutes";
          JsonValue json = await FetchWeatherAsync(url);
          string temp = "";
          for (int i = 0; i &lt; json.Count; i++) {
              //temp += json[i]["name"].ToString();
              temp += json[i]["name"].ToString() ;
          }
  
  
          var items = new List&lt;string&gt;() { temp };
          var adapter = new ArrayAdapter&lt;string&gt;(this, Android.Resource.Layout.SimpleSpinnerItem, items);
          spinner.Adapter = adapter;
  </code></pre>
  
  <p>But it shows me data in spinner as text but not like drop down style. </p>
  
  <p><a href="http://i.stack.imgur.com/xrjE3.png" rel="nofollow">Android Spinner View</a></p>
  
  <p>anything i wrote wrong?</p>