title: I want to Have a custom listView of an arraylist with multiple contents
body: <p>I made a class named Student, I want to add some objects of students to an arrayList.
  I have an activity in java Android and I want to make each object by clicking add button.and simultaneously I want to show student name and address in a custom listview above that activity,that means I want to list students arrayList in a layout.
  how should I make an adapter for this arraylist ??
  Can anybody complete these code ??</p>
  
  <pre><code>Button btnadd = (Button) findViewById(R.id.btnAdd);
          btnadd.setOnClickListener(new OnClickListener(){
  
              public void onClick(View arg0){
                  EditText etname      = (EditText)   findViewById(R.id.etName);
                  EditText etaddress   = (EditText)  findViewById(R.id.etAddress);
                  RadioGroup typeRadio = (RadioGroup)findViewById(R.id.radioType);
                  List&lt;Student&gt; rlist = new ArrayList&lt;Student&gt;();
                  rlist.add(new Student(etname.getText().toString(),
                                            etaddress.getText().toString(),
                                            typeRadio.toString()));
          }
          }
          );
      }
  
      private class MyArrayAdapter&lt;String&gt; extends ArrayAdapter&lt;String&gt;{
  
          ?
          ?
          ?
          }
      }
  
      public View getView(int position, View convertView, ViewGroup parent) {
  
          LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          View row = inflater.inflate(R.layout.list_layout, parent, false);
          ImageView iv = (ImageView) row.findViewById(R.id.resType);
          TextView tv1 = (TextView) row.findViewById(R.id.resName);
          TextView tv2 = (TextView) row.findViewById(R.id.resAddress);
          ?
          ?
          ?
          ?
          return row;
      }
  </code></pre>