How to add subitem in Listview
<p>i have a working <code>ListView</code> I'm trying to add subitems in it. but there's seems to be a problem on <code>list.setAdapter(new SimpleAdapter(this, list, label, wala));</code> </p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>                String[] resName = new String[(int) dataSnapshot.getChildrenCount()];
                String[] resLoc;
                ListView list = (ListView) findViewById(R.id.listViewRest);
                restauList = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
                resLoc = new String[]{"TRY", "TRY2"};

                int i = 0;
                for (DataSnapshot dataSnapshot1 : dataSnapshot.getChildren()) {
                    resName[i] = dataSnapshot1.child("resname").getValue().toString();
                    HashMap&lt;String, String&gt; listahan = new HashMap&lt;String, String&gt;();
                    listahan.put("Restaurant Name", String.valueOf(resName));
                    listahan.put("Location", String.valueOf(resLoc));
                    restauList.add(listahan);
                    i++;
                }
                String [] label = new String[] {"Name", "Location"};
                int [] wala = new int []{ android.R.id.text1, android.R.id.text2 };

                int layout = android.R.layout.two_line_list_item;
                list.setAdapter(new SimpleAdapter(this, list, label, wala));</code></pre>
</div>
</div>
</p>