Listview issue with record increment
<p>i have implement custom listview with footer. i have set button in footer view which fetch more record.but my problem is when i load listview first time, my row file's layout set as per all the record.(i got little bit success when i click on button it display single record in layout one by one) so can you tell me how can i solve this?  </p>

<p><strong>code :</strong></p>

<pre><code>    Arr_ActivityName_fack = new String[Arr_ActivityName.length];
                                Arr_AudioScript_fack = new String[Arr_ActivityName.length];
                                Arr_RequestID_fack = new String[Arr_ActivityName.length];
                                Arr_FolderPath_fack = new String[Arr_ActivityName.length];
                                Arr_RequestTo_fack = new String[Arr_ActivityName.length];


                            Arr_ActivityName_fack[0] = Arr_ActivityName[0];
                            Arr_AudioScript_fack[0] = Arr_AudioScript[0];
                            Arr_RequestID_fack[0] = Arr_RequestID[0];
                            Arr_FolderPath_fack[0] = Arr_FolderPath[0];
                            Arr_RequestTo_fack[0] = Arr_RequestTo_fack[0];

                            lviewAdapter = new ListViewAdapter(SaxParser2.this, Arr_ActivityName_fack, Arr_AudioScript_fack,Arr_RequestID_fack,Arr_FolderPath_fack,Arr_RequestTo_fack);


                            View footerView = ((LayoutInflater)getBaseContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.footer_layout, null, false);
                            lview.addFooterView(footerView);
                             main_btn_next = (Button)footerView.findViewById(R.id.main_btn_next);
                            main_btn_next.setOnClickListener(new View.OnClickListener() {
                             public void onClick(View v) {
                                 generateEntries();
                                 lviewAdapter = new ListViewAdapter(SaxParser2.this, Arr_ActivityName_fack, Arr_AudioScript_fack,Arr_RequestID_fack,Arr_FolderPath_fack,Arr_RequestTo_fack);
                                 lview.setAdapter(lviewAdapter);
                             }
                         });

                             lview.setAdapter(lviewAdapter);
                             lview.setVisibility(View.VISIBLE);
                             if(lview.getCount() == 0)
                               {
                                   Alert_and_getBackto_requ_page();

                               } 
                            lview.setOnItemClickListener(SaxParser2.this);

private void generateEntries() {
        for (int x = counter; x &lt; counter + 1; x++) {
            /*
             * Custom temp = new Custom("Big" + x,"Small" + x); fetch.add(temp);
             */
            Arr_ActivityName_fack[x] = Arr_ActivityName[x];
            Arr_AudioScript_fack[x] = Arr_AudioScript[x];
            Arr_RequestID_fack[x] = Arr_RequestID[x];
            Arr_FolderPath_fack[x] = Arr_FolderPath[x];
            Arr_RequestTo_fack[x] = Arr_RequestTo[x];
        }
        counter += 1;
    }
</code></pre>
