How to add line in between list items in  Listview?
<p>I have ArrayList. I taking a loop and getting values in  2-3 sets. This time I am getting all values, but in same page. I want to seperate the sets of values in pages. How can I divide the sets.</p>

<p>This is my code:</p>

<pre><code>          ListAdapter mSchedule;
        ListView list = (ListView) findViewById(R.id.orderlistview);
        orderList = new ArrayList&lt;Order&gt;();
        orderList = login.getOrderList();
        ArrayList&lt;HashMap&lt;String, String&gt;&gt; mylist = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
        HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
        for(int i=0;i&lt;login.getOrdercount();i++)
        {
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "Open");
            map.put("Value", orderList.get(i).getOpen());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "Type");
            map.put("Value", orderList.get(i).getType());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "Status");
            map.put("Value", orderList.get(i).getStatus());        //     mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "OrderNumber");
            map.put("Value", orderList.get(i).getOrderNumber());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "OrderDate");
            map.put("Value", orderList.get(i).getOrderDate()); 
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "InvoiceNumber");
            map.put("Value", orderList.get(i).getInvoiceNumber());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "InvoiceDate");
            map.put("Value", orderList.get(i).getInvoiceDate());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "Days");
            map.put("Value", orderList.get(i).getDays());
            mylist.add(map);                
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "ReferenceNumber1");
            map.put("Value", orderList.get(i).getReferenceNumber1());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "ReferenceNumber2");
            map.put("Value", orderList.get(i).getReferenceNumber2());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "LineNumber");
            map.put("Value", orderList.get(i).getLineNumber());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "pid");
            map.put("Value", orderList.get(i).getPid());
            mylist.add(map);

            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "MfgCode");
            map.put("Value", orderList.get(i).getMfgCode());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "MfgName");
            map.put("Value", orderList.get(i).getMfgName());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "PartNumber");
            map.put("Value", orderList.get(i).getPartNumber());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "Description");
            map.put("Value", orderList.get(i).getDescription());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "OrderQuantity");
            map.put("Value", orderList.get(i).getOrderQuantity());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "ShipQuantity");
            map.put("Value", orderList.get(i).getShipQuantity());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "BackorderQuantity");
            map.put("Value", orderList.get(i).getBackorderQuantity());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "Eta");
            map.put("Value", orderList.get(i).getEta());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "UnitPrice");
            map.put("Value", orderList.get(i).getUnitPrice());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "UnitCoreCharge");
            map.put("Value", orderList.get(i).getUnitCoreCharge());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "AuthorizationOrReferenceNumber");
            map.put("Value", orderList.get(i).getAuthorizationOrReferenceNumber());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "OutboundTracking");
            map.put("Value", orderList.get(i).getOutboundTracking());
            mylist.add(map);
            map = new HashMap&lt;String, String&gt;();
            map.put("Name", "InboundTracking");
            map.put("Value", orderList.get(i).getInboundTracking()+"\n");
            mylist.add(map);


        }

    mSchedule = new SimpleAdapter(this, mylist, R.layout.order_list_item,
                new String[] {"Name", "Value"}, new int[] {R.id.catagory, R.id.value});
    list.setAdapter(mSchedule);
</code></pre>
