title: android spinner - how to show only text after select item
body: <p>I have <code>Spinner</code> with custom layout in Android Studio:
  user can choose item with custom layout ( Image + text)
  I need to view only text on spinner after selected
  not full layout</p>
  
  <p><a href="https://i.stack.imgur.com/Y1Qil.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y1Qil.png" alt="custom layout"></a> </p>
  
  <p><a href="https://i.stack.imgur.com/t1HJy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t1HJy.png" alt="enter image description here"></a></p>
  
  <p>NOT LIKE THIS:</p>
  
  <p><a href="https://i.stack.imgur.com/6CfYi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6CfYi.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>My custom <code>Adapter</code>:</p>
  
  <pre><code>public class ColorAdapter2 extends ArrayAdapter&lt;colorItem&gt; {
      LayoutInflater inflater;
      ArrayList&lt; colorItem&gt;  items;
      public ColorAdapter2(Context context, int textViewResourceId,
                           ArrayList&lt; colorItem&gt; objects , LayoutInflater inflater) {
          super(context, textViewResourceId, objects);
          this.inflater = inflater;
          items = objects;
      }
  
      @Override
      public View getDropDownView(int position, View convertView,
                                  ViewGroup parent) {
  
          return getCustomView(position, convertView, parent);
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
  
          return getCustomView(position, convertView, parent);
      }
  
      public View getCustomView(int position, View convertView, ViewGroup parent) {
  
  
          View row = inflater.inflate(R.layout.color_item, parent, false);
          TextView label = (TextView) row.findViewById(R.id.nameColor);
          label.setText(items.get(position).getName());
  
          ImageView icon = (ImageView) row.findViewById(R.id.iconColor);
  
          icon.setImageResource(items.get(position).getImageId());
          return row;
      }
  }
  </code></pre>
  
  <p>...and the row layout:</p>
  
  <pre><code>&lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:gravity="center"
      android:background="@drawable/edittext"
      android:padding="10dp"
      android:layout_margin="10dp"&gt;
  
      &lt;ImageView
          android:id="@+id/iconColor"
          android:layout_width="20dp"
          android:layout_height="20dp"
          android:layout_marginLeft="30dp"
          android:src="@drawable/blue_image"/&gt;
  
      &lt;TextView
          android:id="@+id/nameColor"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>