Android - Only show 1 value in Spinner from Adapter
<p>I've got a spinner control that I'm populating from a class that inherits from a BaseAdapter.  I can use this adapter class to populate the spinner but it's showing 2 columns and I would only like one.  For instance, it currently shows:</p>

<pre><code>John Brown                       john@email.com
Sue Fields                       sue@email.com
Mark Twain                       mark.twain@email.com
</code></pre>

<p>and I'd like it to only show:</p>

<pre><code>John Brown
Sue Fields
Mark Twain
</code></pre>

<p>Here's the code for my adapter:</p>

<pre><code>public class POCInfoAdapter extends BaseAdapter {

    //Private objects.
    private List&lt;POCInfo&gt; mListPOCInfo;
    private LayoutInflater mInflater;

    //constructor.
    public POCInfoAdapter(Context c, List&lt;POCInfo&gt; list){
        mListPOCInfo = list;

        //create layout inflater.
        mInflater = LayoutInflater.from(c);
    }

    @Override
    public int getCount(){
        return mListPOCInfo.size();
    }

    @Override
    public Object getItem(int position){
        return mListPOCInfo.get(position);
    }

    @Override
    public long getItemId(int position){
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent){
        //Get view reference.
        View view = convertView;

        //If view is null.
        if(view == null){
            //Inflate new layout.
            view = mInflater.inflate(R.layout.poc_list, null);

            //create holder.
            ViewHolder holder = new ViewHolder();

            //Find Controls.
            holder.txtFullName = (TextView)view.findViewById(R.id.txtFullName);
            holder.txtEmailAddress = (TextView)view.findViewById(R.id.txtEmailAddress);

            //Set data structure to view.
            view.setTag(holder);
        }

        //Get selected POC Info.
        POCInfo pocInfo = mListPOCInfo.get(position);

        if(pocInfo != null){
            //query data structure.
            ViewHolder holder = (ViewHolder)view.getTag();

            //Set data to display.
            holder.txtFullName.setText(pocInfo.getFullName());
            holder.txtEmailAddress.setText(pocInfo.getEmailAddress());
        }

        return view;
    }

    //Class to hold data structure on view with POC Information.
    static class ViewHolder{
        private TextView txtFullName;
        private TextView txtEmailAddress;
    }
}
</code></pre>

<p>and the code to populate the spinner:</p>

<pre><code>Spinner spSpinner = (Spinner)findViewById(R.id.spPOCs);
spSpinner.setAdapter(new POCInfoAdapter(this, DBAdapter.queryAll()));
</code></pre>

<p>DBAdapter.queryAll() returns a List of type POCInfo.  The POCInfoAdapter class is also used by many other activities which require the email address so I can't just change the getView() to only return FullName.</p>

<p>Any ideas?</p>
