title: How to add subitems in a ListView
body: <p>I'm trying to add subItems in my ListView.
  My listView should be organized with emails for items and their institution for  the subitems, but with the following code I just added items, how can I add my subitems on it? I've tried so many things but it doesn't work.</p>
  
  <pre><code>        List&lt;Login&gt; listEmails = JsonUtil.getAllEmails(json);
  
          ArrayList&lt;String&gt; emails = new ArrayList&lt;String&gt;();
  
          ArrayList&lt;String&gt; institutions = new ArrayList&lt;String&gt;();
  
          for (Login loginObj : listEmails) {
  
              emails.add(loginObj.getEmailAndress());
          }
  
          for (Login loginObj : listEmails) {
  
              institutions.add(loginObj.getInstitution());
          }
  
          ArrayAdapter&lt;String&gt; adapter;
  
          adapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, emails);
  
          emailListView.setAdapter(adapter);
  </code></pre>