title: Android: multiple Arrays in custom ArrayAdapter
body: <p>I would like to pass multiple arrays for my custom ArrayAdapter. Here's my arrays and what I want to do:</p>
  
  <pre><code>String[] names = new String[]{ "One", "two", "three" };
  
  String[] texts = new String[]{ "Bacon", "Eggs", "Cheese" };
  
  Customadapter ap = new Customadapter(this, names, texts);
  setListAdapter(ap);
  </code></pre>
  
  <p>and here's my custom ArrayAdapter:</p>
  
  <pre><code>public class Customadapter extends ArrayAdapter&lt;String&gt; {
  
      private final Activity context;
      private final String[] names;
  
      public Customadapter(Activity context, String[] names) {
          super(context, R.layout.row, names);
          this.context = context;
          this.names = names;
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent){
          LayoutInflater inflater = context.getLayoutInflater();
          View rowView = inflater.inflate(R.layout.row, null, true);
          TextView tw1 = (TextView) rowView.findViewById(R.id.label);
          TextView tw2 = (TextView) rowView.findViewById(R.id.label2);
  
          String text = names[position];
          tw2.setText(text);
  
          return rowView;
  
      }
  
  }
  </code></pre>