get All ListView Section Counts - Android User Interface

Android examples for User Interface:ListView

Description

get All ListView Section Counts

Demo Code


import java.util.List;

import android.widget.ListView;

public class Main {
  public static int getAllListViewSectionCounts(ListView lv, List dataSource) {

    return dataSource.size() + lv.getHeaderViewsCount()
        + lv.getFooterViewsCount();/*from w w  w.  ja v  a2  s . c o m*/
  }
}

Related Tutorials