title: how to display two data item in One list view
body: <p>Hello guys i have one of the problem in android development.i'm still develop an android app.So i am facing a problem of the android listview.</p>
  
  <p>my problem is ,i want to display two data items in on the one listview .
  like this :</p>
  
  <pre><code> Recipt No :Date
   001       :2017/11/30
  </code></pre>
  
  <p>so now i use Arrayadapter for load one data element.
  but now i want load two data in the list view</p>
  
  <p>below i put my java code of load one data in the list view.</p>
  
  <pre><code> public void showList()
  {
      String[] ides = new String[de1.size()];     
  
      for (int i = 0; i &lt; de1.size(); i++) {
  
          ides[i] = de1.get(i).getId().toString();
  
  
  
      }
     ArrayAdapter adapter = new ArrayAdapter&lt;String&gt;(depositDetails.this,R.layout.depositlists,R.id.b,ides);
  
  
           listViewlist.setAdapter(adapter);
  
  
  
  }
  </code></pre>
  
  <p>xml code part</p>
  
  <pre><code>    &lt;LinearLayout
          android:layout_width="500dp"
          android:layout_height="67dp"
          android:layout_marginBottom="8dp"
          android:layout_marginEnd="8dp"
          android:layout_marginLeft="8dp"
          android:layout_marginRight="8dp"
          android:layout_marginStart="8dp"
          android:layout_marginTop="8dp"
          android:orientation="horizontal"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintHorizontal_bias="0.0"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintTop_toTopOf="parent"
          app:layout_constraintVertical_bias="0.060000002"&gt;
  
  
          &lt;android.support.constraint.ConstraintLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
  
  
  
              &lt;TextView
  
                  android:id="@+id/b"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="8dp"
                  android:layout_marginEnd="8dp"
                  android:layout_marginLeft="8dp"
                  android:layout_marginRight="8dp"
                  android:layout_marginStart="8dp"
                  android:layout_marginTop="8dp"
                  android:ellipsize="end"
                  android:gravity="center"
                  android:maxLength="15"
                  android:maxLines="2"
                  android:text="Deposit Index"
                  android:textColor="#c60a0a"
                  android:textSize="18sp"
                  android:textStyle="bold"
                  app:layout_constraintBottom_toBottomOf="parent"
                  app:layout_constraintHorizontal_bias="0.037"
                  app:layout_constraintLeft_toRightOf="@+id/imageViewProduct"
                  app:layout_constraintRight_toRightOf="parent"
                  app:layout_constraintTop_toTopOf="parent"
                  app:layout_constraintVertical_bias="0.0" /&gt;
  
  
  
              &lt;TextView
                  android:id="@+id/Status"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="8dp"
                  android:layout_marginLeft="8dp"
                  android:layout_marginRight="8dp"
                  android:layout_marginTop="0dp"
                  android:text="TextView"
                  android:textColor="@color/ButtonCol"
                  android:textStyle="bold"
                  app:layout_constraintBottom_toBottomOf="parent"
                  app:layout_constraintHorizontal_bias="0.03"
                  app:layout_constraintLeft_toRightOf="@+id/imageViewProduct"
                  app:layout_constraintRight_toRightOf="parent"
                  app:layout_constraintTop_toBottomOf="@+id/b"
                  app:layout_constraintVertical_bias="0.555" /&gt;
          &lt;/android.support.constraint.ConstraintLayout&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>