title: Spinner still empty
body: <p>i was create a spinner base on an BaseAdapter</p>
  
  <p>but when i select a value still always empty</p>
  
  <p>it's my code</p>
  
  <p><strong>SpinnerAdapter.class</strong></p>
  
  <pre><code>public class SpinnerAdapter extends BaseAdapter {
  
      private List&lt;School&gt; schools;
      private Activity parentActivity;
      private LayoutInflater inflater;
  
      public SpinnerAdapter(Activity parent, List&lt;School&gt; l) {
          parentActivity = parent;
          schools = l;
          inflater = (LayoutInflater) parentActivity
                  .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
      }
  
  
      @Override
      public int getCount() {
          return schools.size();
      }
  
      @Override
      public Object getItem(int position) {
          return schools.get(position);
      }
  
      @Override
      public long getItemId(int position) {
          return position;
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
          View view = convertView;
          if (convertView == null)
              view = inflater.inflate(R.layout.row_spinner, null);
  
          TextView text1 = (TextView) view.findViewById(R.id.id);
          TextView text2 = (TextView) view.findViewById(R.id.libelle);
          School myObj = schools.get(position);
          text1.setText(String.valueOf(myObj.get_id()));
          text2.setText(myObj.get_nom());
          text1.setVisibility(View.GONE);
  
          return view;
      }
  }
  </code></pre>
  
  <p>School.class</p>
  
  <pre><code>public class School {
  
      private int _id;
      private String _nom;
  
  
      public int get_id() {
          return _id;
      }
  
      public void set_id(int _id) {
          this._id = _id;
      }
  
      public String get_nom() {
          return _nom;
      }
  
      public void set_nom(String _nom) {
          this._nom = _nom;
      }
  }
  
  
  
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      android:orientation="vertical"
      tools:context=".MainActivity" &gt;
  
      &lt;TextView
          android:id="@+id/id"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"/&gt;
      &lt;TextView
          android:id="@+id/libelle"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:textStyle="bold"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>i was create a request using volley library to get data from json file</p>
  
  <p>this my result</p>
  
  <p><a href="https://i.stack.imgur.com/bs7rH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bs7rH.png" alt="enter image description here"></a></p>
  
  <p>but when i select a value style alwsays empty like this</p>
  
  <p><a href="https://i.stack.imgur.com/QM7Hg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QM7Hg.png" alt="enter image description here"></a></p>
  
  <p>thanks for your help</p>