title: Pagination for ListView in android
body: <p>I have to apply pagination concept on ListView my list view contains data parsed from web service. below is code given that how I have displayed data in list view as below.</p>
  
  <pre><code>try {
      ArrayList&lt;HashMap&lt;String, String&gt;&gt; arl (ArrayList&lt;HashMap&lt;String, String&gt;&gt;)  getIntent().getSerializableExtra("arraylist");
  
        System.out.println("...serialized data.."+arl);
  lv1 = (ListView) findViewById(R.id.lstlodgingresult);
      adapter = new SimpleAdapter(this, arl, R.layout.custom_row_view,
                      new String[] { "Srno", "Names", "URL", "Address1",  "Address2", "Telephone", "Category", "PetH",
  "PetInfo" }, new int[] { R.id.txtSrno,R.id.txtname, R.id.txturl, R.id.txtaddress1,  R.id.txtaddress2, R.id.txtphone, R.id.txtcategory,
  R.id.txtpetpolicyH, R.id.txtpetpolicyC }
  );
  lv1.setScrollbarFadingEnabled(false);
  lv1.refreshDrawableState();
  lv1.setAdapter(adapter);
  } catch (Exception e) {
  e.printStackTrace();
  }
  </code></pre>