title: How to set default value for spinner in android
body: <p>In my application I want use <code>Spinner</code> and for this a use this <strong>library</strong> : <a href="https://github.com/jaredrummler/MaterialSpinner" rel="nofollow noreferrer">enter link description here</a><br></p>
  
  <p>I get array list from server with this code : </p>
  
  <pre><code>InterfaceApi api = ApiClient.getClient().create(InterfaceApi.class);
  Call&lt;StringListDataResponse&gt; call = api.getGetAggregationGenres();
  
  call.enqueue(new Callback&lt;StringListDataResponse&gt;() {
      @Override
      public void onResponse(Call&lt;StringListDataResponse&gt; call, Response&lt;StringListDataResponse&gt; response) {
          if (response.body().getData() != null) {
              spinner.setItems(response.body().getData());
          }
      }
  
      @Override
      public void onFailure(Call&lt;StringListDataResponse&gt; call, Throwable t) {
  
      }
  });
  </code></pre>
  
  <p>Spinner selected Item code:</p>
  
  <pre><code>spinner.setOnItemSelectedListener(new MaterialSpinner.OnItemSelectedListener&lt;String&gt;() {
  
              @Override public void onItemSelected(MaterialSpinner view, int position, long id, String item) {
                  Snackbar.make(view, "Clicked " + item, Snackbar.LENGTH_LONG).show();
              }
      });
  </code></pre>
  
  <p>but I want set default value for this spinner. <br>
  First show my default value, when selected item show this item from list.</p>
  
  <p>how can I it?</p>