title: want to add two textview in a custom listview
body: <p>I am trying to add two textviews in a custom listview. It shows the data but not combined them. It shows as a different layouts.</p>
  
  <p>This is the custom listview.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content" &gt;
  
  
              &lt;TextView
                  android:id="@+id/rollnoText"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="5dip"
                  android:layout_marginRight="5dip"
                  android:layout_marginLeft="5dip"
                  android:background="@drawable/custom_stuadd_drawable"
                  android:paddingLeft="10dip"
                  android:textColor="@android:color/primary_text_light"
                  /&gt;
  
              &lt;TextView
                  android:id="@+id/stunameText"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_margin="0dip"
                  android:background="#00dcdcdc"
                  android:paddingLeft="10dip"
                  android:textColor="#b9dcdcdc"
                  android:layout_below="@+id/rollnoText"
                  /&gt;
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>This is CustomAdapter class</p>
  
  <pre><code>public CustomStuDataAdapter(Context context, int resource, List&lt;String&gt; objects) {
          super(context, R.layout.custom_student_data, objects);
      }
  
      static class ViewHolder{
          TextView Roll_No;
          TextView Stu_Name;
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
          final ViewHolder viewHolder;
          LayoutInflater StuInflater = LayoutInflater.from(getContext());
          convertView = StuInflater.inflate(R.layout.custom_student_data, parent, false);
          viewHolder = new ViewHolder();
          //String str = getItem(position);
          viewHolder.Roll_No = (TextView) convertView.findViewById(R.id.rollnoText);
          viewHolder.Stu_Name = (TextView)convertView.findViewById(R.id.stunameText);
         // System.out.println(stnm);
         // rno=getItem(position);
          viewHolder.Roll_No.setText(getItem(position));
         // stnm=getItem(position);
          //viewHolder.Stu_Name.setText(getItem(position));
          convertView.setTag(viewHolder);
          return convertView;
      }
  </code></pre>
  
  <p>This is the main class</p>
  
  <pre><code>List&lt;String&gt; details = new ArrayList&lt;String&gt;();
  studbhandler = new CourseDbHandler(this, null, null, 1);
              Cursor c = studbhandler.stuData(tbnm);
              c.moveToFirst();
  
              if(c.equals(null)){
                  System.out.println("NO DATA");
              }
              else {
                  if(c.moveToFirst()) {
                      do {
                          rn=c.getString(0);
                          details.add(rn);
                          nm=c.getString(1);
                          details.add(nm);
                      } while (c.moveToNext());
                      studlist = (ListView)findViewById(R.id.studentList);
                      ListAdapter stuAdapter = new CustomStuDataAdapter(this,R.layout.activity_add_student,details);
                      studlist.setAdapter(stuAdapter);
                  }
              }
  </code></pre>
  
  <p>output comes as this
  <a href="http://i.stack.imgur.com/R9YtP.jpg" rel="nofollow">here i want to combine two rows like first and second then third and fourth and so on...</a></p>